跳转到内容
简体中文

websocket

此内容尚不支持你的语言。

Public WebSocket API surface. Internals (session actor, connection impl, wiring, socket adapter, message signals) are intentionally NOT re-exported — users interact only through websocket(), WebsocketServerActor, the WebsocketConnection handle, and the codecs.

websocket<TOut, TIn, TSelf>(target, options?): Route

Defined in: src/http/websocket/WebsocketRoute.ts:26

websocket(target) — mount at the enclosing path.

TOut

TIn

TSelf = never

WebsocketServerRef<TOut, TIn, TSelf>

WebsocketRouteOptions<TOut, TIn>

Route

websocket<TOut, TIn, TSelf>(routePath, target, options?): Route

Defined in: src/http/websocket/WebsocketRoute.ts:31

websocket('/ws', target) — sugar for path('/ws', websocket(target)).

TOut

TIn

TSelf = never

string

WebsocketServerRef<TOut, TIn, TSelf>

WebsocketRouteOptions<TOut, TIn>

Route