Aller au contenu
Français

websocket

Ce contenu n’est pas encore disponible dans votre langue.

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