method WebSocketConnection.prototype.participatesInHeartbeat
WebSocketConnection.prototype.participatesInHeartbeat(): boolean

Whether the shared heartbeat sweeper should include this connection. When false, the sweeper skips both the payload send and idle eviction.

Return Type

boolean

Usage

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