IsolateClient class
A Client implementation that communicates via SendPorts and ReceivePorts.
Constructors
- IsolateClient(String? clientId, SendPort serverSendPort)
Properties
- clientId → String?
-
The ID of the client we are authenticating as.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- receivePort → ReceivePort
-
A ReceivePort that receives messages from the server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverSendPort → SendPort
-
A server's SendPort that messages should be sent to.
final
Methods
-
close(
) → Future -
Disposes of this client.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish(
String eventName, dynamic value) → Future -
Publishes an event to the server.
override
-
subscribe(
String eventName) → Future< ClientSubscription> -
Request a ClientSubscription to the desired
eventName
from the server.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited