socketIO-client icon indicating copy to clipboard operation
socketIO-client copied to clipboard

Issues while using socketIO-client library

Open rhythmize opened this issue 6 years ago • 5 comments

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 avatar Jun 13 '18 06:06 rhythmize

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

rhythmize avatar Jun 18 '18 04:06 rhythmize

++ the same problem as in the first case

xxxenobyte avatar Jul 03 '18 10:07 xxxenobyte

Have you found a fix?

rhythmize avatar Jul 04 '18 19:07 rhythmize

@code-player no =(

xxxenobyte avatar Jul 05 '18 10:07 xxxenobyte

+1

rake1191 avatar Aug 28 '20 04:08 rake1191