Skip to content
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

Connect to Server again if the handshake fails #124

Open
yash2503 opened this issue Sep 24, 2019 · 0 comments
Open

Connect to Server again if the handshake fails #124

yash2503 opened this issue Sep 24, 2019 · 0 comments

Comments

@yash2503
Copy link

I am using sails.io.js and socket.io-client on the frontend and I have configured it to reconnect if the connection is lost with the server and it is working fine. The other scenario that I want to test is mentioned below

  1. Server is down intially
  2. User accesses the frontend application in the browser
  3. The application tries to create a socket connection to the server, but the handshake fails as the server is down

How to make the socket connection in this case (i.e. try to connect until the server is up again)

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

No branches or pull requests

1 participant