WebSocketClientInterface
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 SessionConfig
initialization.
Methods
close
▸ close(): Future
<any
>
Returns
Future
<any
>
connect
▸ Future
<void
> connect( uri
,headers
)
Parameters
Name | Type |
---|---|
uri | string |
headers? | Map<String, dynamic> |
Returns
Future
<void
>
read
▸ Future
<Iterable
<int
>> read()
Returns
Future
<Iterable
<int
>>
reset
▸ Future
<void
> reset()
Returns
Future
<void
>
send
▸ Future
<void
> send(message
)
Parameters
Name | Type |
---|---|
message | Iterable <int > |
Returns
Future
<void
>
waitRemoteClose
▸ Future
<int?
> waitRemoteClose()
Returns
Future
<int?
>