IWebSocketClient
Interface for WebSocket client. If you need extra functionality or customize how message sent and receive from cloud node,
you can implement this interface and pass to CloudWebSocketClient
initialization.
Methods
close()
close():
Promise
<any
>
Returns
Promise
<any
>
connect()
connect(
url
,protocols
,options
?):Promise
<void
>
Parameters
url
string
protocols
string
[]
options?
Returns
Promise
<void
>
read()
read():
Promise
<Uint8Array
>
Returns
Promise
<Uint8Array
>
reset()
reset():
void
Returns
void