Skip to content

Commit c4e4b0b

Browse files
quentinmiguelgrinberg
authored andcommitted
Add namespaces parameter to the self.connect call in the reconnection process
1 parent a34549a commit c4e4b0b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

socketio/asyncio_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ async def _handle_reconnect(self):
382382
await self.connect(self.connection_url,
383383
headers=self.connection_headers,
384384
transports=self.connection_transports,
385+
namespaces=self.connection_namespaces,
385386
socketio_path=self.socketio_path)
386387
except (exceptions.ConnectionError, ValueError):
387388
pass

socketio/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ def _handle_reconnect(self):
477477
self.connect(self.connection_url,
478478
headers=self.connection_headers,
479479
transports=self.connection_transports,
480+
namespaces=self.connection_namespaces,
480481
socketio_path=self.socketio_path)
481482
except (exceptions.ConnectionError, ValueError):
482483
pass

0 commit comments

Comments
 (0)