Communicator class abstract

Implementers

Constructors

Communicator()

Properties

clientId String
latefinal
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
no setter
isConnecting bool
no setter
isDisconnected bool
no setter
isDisconnecting bool
no setter
messages Stream<FarmMessage>
latefinal
onAutoReconnect Callback?
Auto reconnect callback, if auto reconnect is selected this callback will be called before auto reconnect processing is invoked to allow the user to perform any pre auto reconnect actions.
getter/setter pair
onAutoReconnected Callback?
Auto reconnected callback, if auto reconnect is selected this callback will be called after auto reconnect processing is completed to allow the user to perform any post auto reconnect actions.
getter/setter pair
onConnected Callback?
Client connect callback, called on successful connect
getter/setter pair
onDisconnected Callback?
Client disconnect callback, called on unsolicited disconnect. This will not be called even if set if [autoReconnect} is set,instead onAutoReconnect will be called.
getter/setter pair
password String?
latefinal
port int
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server String
latefinal
username String?
latefinal

Methods

connect() Future<void>
disconnect() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish(String topic, String data, {CommunicatorQos qos = CommunicatorQos.atLeastOnce, bool retain = false}) int
subscribe(String topic, CommunicatorQos qos) int?
toString() String
A string representation of this object.
inherited

Operators

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