Skip to content

Heartbeat

Pings every socket every 30 s; one that did not answer the last ping is cut (a phone that went away without closing).

new Heartbeat(ms?): Heartbeat

number = 30_000

Heartbeat

add(ws): void

WebSocket

void


remove(ws): void

WebSocket

void


stop(): void

void