Last updated 5 years ago
To keep the connection with the WebSocket node alive you need to notify the node that your peer is awake every 10 sec.
setInterval(function() { client.api.heartbeat() }, 10 * 1000);