-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling disconnect() will not disconnect the client. #167
Comments
Unfortunately this does not work for me. Maybe there are more ideas, how can I break the connection? |
@Code-ReaQtor @jlustk Hence, for complete client disconnect I made two changes:
Reason for doing step 2 is there is kind of deadlock situation that always invokes a new Transport instance irrespective on invoking disconnect.
@property
def _transport(self):
if self._opened:
return self._transport_instance
self._engineIO_session = self._get_engineIO_session()
self._negotiate_transport()
self._connect_namespaces()
self._opened = True
self._reset_heartbeat()
return self._transport_instance
if self._opened and self._wants_to_close:
return self._transport_instance
Hope this helps! This may also be related to following issues: |
Shouldn't that be |
Hi,
I started the client using "wait forever" as described on the README. When calling disconnect(), the session gets disconnected, however, the engineio will still be running and tries to reconnect with a new session.
What is not clear is that it wasn't described in the documentation/code if disconnect() is actually for the sessions or for the client.
As for my use case, I patched
socketIO-client/socketIO_client/__init__.py
Line 69 in 1e58add
The code should look like this.
I just want to make it clear if the disconnect() function is only for sessions, if yes, please expose a function for "client disconnection".
Thanks!
The text was updated successfully, but these errors were encountered: