MqttConnectionBase class

The MQTT client connection base class

Implementers

Constructors

MqttConnectionBase(EventBus clientEventBus)
Default constructor
MqttConnectionBase.fromConnect(String server, int port, EventBus clientEventBus)
Initializes a new instance of the MqttConnection class.

Properties

client ↔ dynamic
The socket that maintains the connection to the MQTT broker.
@protected, read / write
clientEventBus EventBus
The event bus
@protected, read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
messageStream MqttByteBuffer
The read buffer
@protected, read / write
onDisconnected DisconnectCallback
Unsolicited disconnection callback
@protected, read / write
readWrapper ReadWrapper
The read wrapper
@protected, read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

connect(String server, int port) Future<void>
Connect, must be overridden in connection classes
@protected
disconnect({bool auto: false}) → void
User requested or auto disconnect disconnection
@protected
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDone() → void
OnDone listener callback
@protected
onError(dynamic error) → void
OnError listener callback
@protected
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited