JsonRpc2Client class

A Client implementation that communicates via JSON RPC 2.0.

Inheritance

Constructors

JsonRpc2Client(String? clientId, StreamChannel<String> channel)

Properties

clientId String?
The ID of the client we are authenticating as.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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