interface WsRoute
Since 0.1.0

One registered WebSocket route.

Properties

readonly
path: string

The exact path this route serves.

The application's lifecycle callbacks.

readonly
protocols: readonly string[]

Subprotocols this route accepts, empty when none are configured.

readonly
heartbeat: boolean

Whether this route participates in the shared heartbeat sweep. Defaults to true so existing routes are unaffected.

Usage

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