method HeartbeatSweeper.prototype.tick
HeartbeatSweeper.prototype.tick(): void

Runs one sweep: closes connections that have been silent too long, then sends the heartbeat payload to the rest.

Exposed so tests drive a deterministic tick rather than waiting on a timer.

Return Type

void

Usage

import { HeartbeatSweeper } from "websocket-plugin/src/index.ts";