I'm receiving Engine.IO connection drop if i'm trying to call an event from connect on server side #760
-
Client Code :
Server Code :
I'm receving the "received sid" on the server then i get the following error on the client side :
The following issue occurs only if i'm trying to make the call on the server side on connect, has anyone an idea why is that? As a note, im using py3.6 for development |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In general the connect event handler's function is to decide if the client is accepted or rejected. You can't do complex things in there, because the connection is not fully established when this handler is invoked. You can try using the |
Beta Was this translation helpful? Give feedback.
In general the connect event handler's function is to decide if the client is accepted or rejected. You can't do complex things in there, because the connection is not fully established when this handler is invoked.
You can try using the
always_connect=True
option (docs) and that may help, but my recommendation is that you move thiscall()
to a real event instead of inconnect
.