method WsRouteTable.prototype.match
Since 0.1.0
WsRouteTable.prototype.match(request: Request): WsRouteMatch | null

Matches an upgrade request.

Parameters

request: Request

The upgrade request

Return Type

The match, or a refusal with the status to answer

Usage

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