For the complete documentation index, see llms.txt. This page is also available as Markdown.

Keep connection alive

To keep the connection with the WebSocket node alive you need to notify the node that your peer is awake every 10 sec.

Example

setInterval(function() {
  client.api.heartbeat()
}, 10 * 1000);

Last updated