Pular para o conteúdo
Português (BR)

CompiledWebsocketRoute

Este conteúdo não está disponível em sua língua ainda.

CompiledWebsocketRoute = object

Defined in: src/http/Route.ts:38

A compiled WebSocket route. Occupies the GET verb at its pattern (that’s how the HTTP upgrade arrives). authorize folds any enclosing withMiddleware(...) — it runs once, against the upgrade request, and returns null to accept or an HttpResponse to reject the upgrade with a plain HTTP response.

readonly authorize: (request) => Promise<HttpResponse | null>

Defined in: src/http/Route.ts:43

HttpRequest

Promise<HttpResponse | null>


readonly connect: WebsocketConnectHandler

Defined in: src/http/Route.ts:42


readonly kind: "websocket"

Defined in: src/http/Route.ts:39


readonly method: "GET"

Defined in: src/http/Route.ts:40


readonly pattern: string

Defined in: src/http/Route.ts:41