Zum Inhalt springen
Deutsch

websocket

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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