Client class

Constructors

Client()

Properties

connectStream Stream<ConnectEvent>
read-only
disconnectStream Stream<DisconnectEvent>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
messageStream Stream<MessageEvent>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

connect() → void
Connect to the server.
disconnect() → void
Disconnect from the server.
getSubscription(String channel) Subscription
Get subscription to the channel. [...]
hasSubscription(String channel) bool
Detect that the subscription already exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
publish(String channel, List<int> data) Future
Publish data to the channel
removeSubscription(Subscription subscription) → void
Remove the subscription and unsubscribe from subscription.channel.
rpc(List<int> data) Future<RPCResult>
Send RPC command
send(List<int> data) Future<void>
@alwaysThrows
setConnectData(List<int> connectData) → void
Set data for connection request. [...]
setToken(String token) → void
Set token for connection request. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited