We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aece101 commit 461994dCopy full SHA for 461994d
1 file changed
thingsdb/client/protocol.py
@@ -36,6 +36,9 @@
36
pass
37
38
39
+WEBSOCKET_MAX_SIZE = 2**24 # default from websocket is 2**20
40
+
41
42
class Proto(enum.IntEnum):
43
# Events
44
ON_NODE_STATUS = 0x00
@@ -354,7 +357,7 @@ def __init__(
354
357
self._is_closing = False
355
358
356
359
async def connect(self, uri, ssl: SSLContext):
- self._proto = await connect(uri, ssl=ssl, max_size=2**24)
360
+ self._proto = await connect(uri, ssl=ssl, max_size=WEBSOCKET_MAX_SIZE)
361
asyncio.create_task(self._recv_loop())
362
363
return self
0 commit comments