Skip to content

[Support Request] Multiple client problem #32

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

Open
ithieund opened this issue Jan 11, 2017 · 2 comments
Open

[Support Request] Multiple client problem #32

ithieund opened this issue Jan 11, 2017 · 2 comments

Comments

@ithieund
Copy link

@gcrabtree ,
This plugin was great, but when I created 2 client in the same app, there was a problem with incoming message.

Situation:

  • I have 1 server which run 2 socket.io app: 1 for notification, 1 for messaging, both use the same event name 'message' to listen for message from client.
  • In my app, I have 2 client: 1 for notification, 1 for messaging, using you plugin.

The problem is, when there was 1 message sent from 1 of the servers, both client receive that message :(

That make me a headache a lot.
Can you please help me figure out what cause this and how to fix it?

Thanks.

@ithieund
Copy link
Author

ithieund commented Jan 23, 2017

@gcrabtree ,
I tried with the js version of socket.io-client and it worked perfect
https://www.npmjs.com/package/socket.io-client

I think your plugin does not support to create multiple client, which will share the memory between clients or something like that and cause this problem.

I think you should fix this asap.
Thanks.

@saalihou
Copy link

Unfortunately the socketio js client does not support background reconnects, which was a no go for our company.
I made a PR fixing the multiple sockets problem on Android: #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants