콘텐츠로 이동
한국어

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