Skip to content

WebSocketMessageInput

type WebSocketMessageInput<T extends WebSocketDescriptor> = intersection

The message handler’s scope.input: the connect-time input plus the validated inbound message. message is the WS analog of HTTP’s scope.input.body - the per-invocation payload lives on scope.input, NOT as a separate handler argument, so the WS handler shape does not diverge from HTTP.

Learn: Contracts

Last updated: