In Node.js I\'m using websockets/ws for a WebSocket connection. Below is the code for the client. Let\'s say the server socket we are connecting to goes down for a minute. T
I've used https://github.com/joewalnes/reconnecting-websocket/blob/master/reconnecting-websocket.js with success.
You should be able to do:
ws = new ReconnectingWebSocket('ws://....'); ws.reconnectInterval = 60000; // try to reconnect after 10 seconds