method WebSocketConnection.prototype.touch
WebSocketConnection.prototype.touch(now: number): void

Records that a frame arrived, resetting the idle countdown.

Parameters

now: number

The current monotonic timestamp (runtime.hrtime())

Return Type

void

Usage

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