ForwardingClient class

Browser-compatible client for connecting to the forwarding server.

Constructors

ForwardingClient.new(ForwardingClientType clientType, {String? clientId})
Creates a new forwarding client.

Properties

clientId String
final
clientType ForwardingClientType
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callMethod<T>(String method, {Map<String, dynamic> params = const {}}) Future<T>
Call a method via the forwarding server
connect(String host, int port, {String path = '/forward'}) Future<void>
Connect to the forwarding server
disconnect() → void
Disconnect from the forwarding server
getClientId() String
Get the client ID
getClientType() ForwardingClientType
Get the client type
isConnected() bool
Check if connected to the forwarding server
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event, Function callback) → void
Remove an event listener
on(String event, Function callback) → void
Add an event listener
registerMethod(String method, Future handler(dynamic)) → void
Register a method handler
sendMessage(dynamic message) → void
Send a raw message through the forwarding server
toString() String
A string representation of this object.
inherited

Operators

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