Skip to main content

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

NameType
uristring
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

NameType
messageIterable<int>

Returns

Future<void>


waitRemoteClose

Future<int?> waitRemoteClose()

Returns

Future<int?>