CloudClient class

CloudClient use to bridge the sdk with cloud node using web socket client.

Constructors

CloudClient({required String baseUri, required bool isSecure, WebSocketClientInterface? webSocketClient})

Properties

baseUri → String
Base uri of the cloud node.
final
hashCode → int
The hash code for this object.
no setterinherited
isSecure → bool
To use the secure url, if isSecure is true then url will start with wss: otherwise ws: is used
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
webSocketClient → WebSocketClientInterface
Returns the web socket client.
no setter

Methods

close() → Future
Close the web socket closing
connect(String uri, [String protocol = 'duo-instance']) → Future<void>
Connects to the server using the given uri and protocol.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readData() → Future
Read data from the socket readData will return a Iterable<int> or String for 'OK'
reset() → Future<void>
Reset the web socket connections
sendData(dynamic data) → Future<void>
Send data to the socket
toString() → String
A string representation of this object.
inherited
waitRemoteClose() → Future<int?>
Wait for remote to close

Operators

operator ==(Object other) → bool
The equality operator.
inherited