We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1752121 commit ed35688Copy full SHA for ed35688
1 file changed
template/server/messaging.py
@@ -80,6 +80,9 @@ async def reconnect(self):
80
if self._ws is not None:
81
await self._ws.close(reason="Reconnecting")
82
83
+ if self._receive_task is not None:
84
+ await self._receive_task
85
+
86
await self.connect()
87
88
async def connect(self):
@@ -90,7 +93,8 @@ async def connect(self):
90
93
91
94
self._ws = await connect(
92
95
self.url,
- ping_timeout=30,
96
+ ping_timeout=0.03,
97
+ ping_interval=0.03,
98
max_size=None,
99
max_queue=None,
100
logger=ws_logger,
0 commit comments