JsonRpc2Client class
A Client implementation that communicates via JSON RPC 2.0.
Constructors
-
JsonRpc2Client(String? clientId, StreamChannel<
String> channel)
Properties
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