Skip to main content

Class: OkWebSocketResult<T>

A class for representing WebSocket results with a body.

Extends​

Type Parameters​

T​

T = unknown

Constructors​

Constructor​

new OkWebSocketResult<T>(value): OkWebSocketResult<T>

Parameters​

value​

T

Returns​

OkWebSocketResult<T>

Overrides​

WebSocketResult.constructor

Properties​

rc​

readonly rc: number

Inherited from​

WebSocketResult.rc


value​

readonly value: T

Inherited from​

WebSocketResult.value

Methods​

process()​

process(context): Promise<void>

Processes the result using the provided execution context.

Parameters​

context​

WebSocketContext

The execution context containing relevant information for processing.

Returns​

Promise<void>

A promise resolving when the result has been processed.

Overrides​

WebSocketResult.process