FIX: add urlsafe=True (#111)

This commit is contained in:
PatMulligan 2025-09-10 14:10:45 +02:00 committed by GitHub
parent 0fc26d096f
commit d43a3b196c

View file

@ -30,7 +30,7 @@ class NostrClient:
async def connect_to_nostrclient_ws(self) -> WebSocketApp: async def connect_to_nostrclient_ws(self) -> WebSocketApp:
logger.debug(f"Connecting to websockets for 'nostrclient' extension...") logger.debug(f"Connecting to websockets for 'nostrclient' extension...")
relay_endpoint = encrypt_internal_message("relay") relay_endpoint = encrypt_internal_message("relay", urlsafe=True)
on_open, on_message, on_error, on_close = self._ws_handlers() on_open, on_message, on_error, on_close = self._ws_handlers()
ws = WebSocketApp( ws = WebSocketApp(
f"ws://localhost:{settings.port}/nostrclient/api/v1/{relay_endpoint}", f"ws://localhost:{settings.port}/nostrclient/api/v1/{relay_endpoint}",