-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Are multiple client connections supported? #318
Comments
Try this: |
Excellent suggestion! I didn't know about that config option. I'll give it a try. Thanks for your help. |
You are welcome. |
I love it when you get exactly the answer you are looking for. Thanks guys! |
Thanks, totally forgot about this param. |
thanks guys! |
{'force new connection': true} |
Thanks for the config suggestion {'force new connection': true}. |
I am writing unit tests to test my socket.io server. It would be useful to be able to test multiple client socket connections in the same script. I am running the socket.io-client server side.
I've created 2 simple test scripts that show it is currently not possible:
https://gist.github.com/1297838
Obviously multiple socket connections within the browser wouldn't make any sense, but on the server-side I don't see why this shouldn't be possible.
Am I correct with my understanding? Do I need to run multiple Node.js processes if I want to run multiple socket-clients on the server-side?
Any help would be appreciated.
Andrew
The text was updated successfully, but these errors were encountered: