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.
Properties
Section titled “Properties”authorize
Section titled “authorize”
readonlyauthorize: (request) =>Promise<HttpResponse|null>
Defined in: src/http/Route.ts:43
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”Promise<HttpResponse | null>
connect
Section titled “connect”
readonlyconnect:WebsocketConnectHandler
Defined in: src/http/Route.ts:42
readonlykind:"websocket"
Defined in: src/http/Route.ts:39
method
Section titled “method”
readonlymethod:"GET"
Defined in: src/http/Route.ts:40
pattern
Section titled “pattern”
readonlypattern:string
Defined in: src/http/Route.ts:41
