Skip to content

Commit 461994d

Browse files
committed
Comment
1 parent aece101 commit 461994d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

thingsdb/client/protocol.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
pass
3737

3838

39+
WEBSOCKET_MAX_SIZE = 2**24 # default from websocket is 2**20
40+
41+
3942
class Proto(enum.IntEnum):
4043
# Events
4144
ON_NODE_STATUS = 0x00
@@ -354,7 +357,7 @@ def __init__(
354357
self._is_closing = False
355358

356359
async def connect(self, uri, ssl: SSLContext):
357-
self._proto = await connect(uri, ssl=ssl, max_size=2**24)
360+
self._proto = await connect(uri, ssl=ssl, max_size=WEBSOCKET_MAX_SIZE)
358361
asyncio.create_task(self._recv_loop())
359362
self._is_closing = False
360363
return self

0 commit comments

Comments
 (0)