Skip to content

WebSocketMessageHandlerScope

type WebSocketMessageHandlerScope<D extends InjectMap = {}, T extends WebSocketDescriptor = {}> = intersection

The message handler’s scope: WebSocketHandlerScope whose input additionally carries the validated inbound message (typed from the descriptor’s incoming), mirroring HTTP’s scope.input.body.

Learn: Inline handlers

Last updated: