Core
WebSocketHandler
Terminal next function a WebSocket interceptor receives; it opens a session for the request.
@defjs/core · Type
Signature
type WebSocketHandler = ( req: HttpRequest, ) => Promise<WebSocketSessionLike>;
next(req) goes inward only: through the interceptors registered after this
one, then the transport that opens the session. It resolves to a
WebSocketSessionLike. It may be called once per execute; a second
call, or a call after the chain has settled, rejects.
Parameters
Prop
Type
req HttpRequest