Reconnecting Websocket
Io.reconnectingWebsocket connects and tries to keep a connection to a WebSocket server.
This is handy because you lose connection if you close the lid of your laptop, lose wifi etc. Instead of having to listen for and handle the state of the raw WebSocket, this function does it for you.
The usage is simple:
See the API documentation for more examples and info.