invisibleroads / socketIO-client

A socket.io client library for Python
http://pypi.python.org/pypi/socketIO-client
MIT License
447 stars 205 forks source link

Issues while using socketIO-client library #189

Open rhythmize opened 6 years ago

rhythmize commented 6 years ago

Hi, I was testing this library to be used in project involving socket connections to a socket server. Following are some of the issues I faced:

  1. socket client is not continuously listening for events triggered by the server (I have to make a blocking call manager.wait()). Thus handlers are not executed as soon as server triggers a custom event. (This seems a big issue because socket connections are meant to be realtime)
  2. On connecting to custom namespace /sub of the server (using manager.define(Namespace, '/sub')), socket.emit("event") works even after the client is disconnected from that namespace (either by client or server).
  3. Once disconnected, if client again connects to server namespace (using manager.define(Namespace, '/sub')), it pics up the same connection-id as before whereas once disconnected, client should pick up new connection-id.

I don't know if someone else faced these issues, but please suggest if I got something wrong in using the library or above mentioned points are features or actually issues.

Please respond soon. I need this library to embed in a Flask application.

Regards Rhythm

rhythmize commented 6 years ago

Has anyone else faced these issues or am I missing something here?

xxxenobyte commented 6 years ago

++ the same problem as in the first case

rhythmize commented 6 years ago

Have you found a fix?

xxxenobyte commented 6 years ago

@code-player no =(

rake1191 commented 4 years ago

+1