RelayClient class

Implemented types

Constructors

RelayClient({required ICore core, required IMessageTracker messageTracker, required IGenericStore<String> topicMap, IWebSocketHandler? socketHandler})

Properties

core ICore
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
Returns true if the client is connected to a relay server
no setteroverride
jsonRPC Peer?
getter/setter pair
messageTracker IMessageTracker
getter/setter pair
onRelayClientConnect Event<EventArgs>
Events /// Relay Client
final
onRelayClientDisconnect Event<EventArgs>
final
onRelayClientError Event<ErrorEvent>
final
onRelayClientMessage Event<MessageEvent>
Relay Client Events
final
onSubscriptionCreated Event<SubscriptionEvent>
Subscriptions
final
onSubscriptionDeleted Event<SubscriptionDeletionEvent>
final
onSubscriptionResubscribed Event<EventArgs>
final
onSubscriptionSync Event<EventArgs>
final
pendingSubscriptions Map<String, Future>
Stores all the subs that haven't been completed
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socketHandler IWebSocketHandler
final
topicMap IGenericStore<String>
getter/setter pair

Methods

connect({String? relayUrl}) Future<void>
override
disconnect() Future<void>
override
handlePublish(String topic, String message) Future<bool>
JSON RPC MESSAGE HANDLERS
init() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish({required String topic, required String message, required int ttl, required int tag}) Future<void>
override
subscribe({required String topic}) Future<String>
override
toString() String
A string representation of this object.
inherited
unsubscribe({required String topic}) Future<void>
override

Operators

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