Kit
Functions

createWebSocketChannel

createWebSocketChannel(__namedParameters): Promise<RpcSubscriptionsChannel<WebSocketMessage, string>>

Creates an object that represents an open channel to a WebSocket server.

You can use it to send messages by calling its RpcSubscriptionsChannel.send | `send()` function and you can receive them by subscribing to the RpcSubscriptionChannelEvents it emits.

Parameters

ParameterType
__namedParametersConfig

Returns

Promise<RpcSubscriptionsChannel<WebSocketMessage, string>>

On this page