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
Parameter | Type |
---|---|
__namedParameters | Config |
Returns
Promise
<RpcSubscriptionsChannel
<WebSocketMessage
, string
>>