From 604255405e489f39f930d284ae0e33ed8014364f Mon Sep 17 00:00:00 2001 From: mstrofnone Date: Tue, 14 Apr 2026 03:30:51 +1000 Subject: [PATCH] setup.py: pin websockets<11 to fix WS/WSS transport aiorpcX 0.18.x uses the legacy WebSocketServerProtocol handler API which was removed in websockets 11.0. Without an upper bound, pip resolves to websockets 15.x, causing all WS/WSS connections to close immediately with code 1011 (internal error) after a successful upgrade handshake. Pin websockets to the compatible 6.x-10.x range. Context: https://github.com/hzrd149/nostrudel/pull/352 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f8b802a89..21e0c8e3c 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ version=version, scripts=['electrumx_server', 'electrumx_rpc', 'electrumx_compact_history'], python_requires='>=3.7', - install_requires=['aiorpcX[ws]>=0.18.3,<0.19', 'attrs', + install_requires=['aiorpcX[ws]>=0.18.3,<0.19', 'websockets>=6.0,<11', 'attrs', 'plyvel', 'pylru', 'aiohttp>=3.3'], extras_require={ 'rocksdb': ['python-rocksdb>=0.6.9'],