MqttBrowserConnection class

The MQTT browser connection base class

Inheritance
Implementers

Constructors

MqttBrowserConnection(dynamic clientEventBus)
Default constructor
MqttBrowserConnection.fromConnect(String server, int port, dynamic clientEventBus)
Initializes a new instance of the MqttBrowserConnection class.

Properties

client ↔ dynamic
The socket that maintains the connection to the MQTT broker.
@protected, read / write, inherited
clientEventBus EventBus
The event bus
@protected, read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
messageStream MqttByteBuffer
The read buffer
@protected, read / write, inherited
onDisconnected DisconnectCallback
Unsolicited disconnection callback
@protected, read / write, inherited
readWrapper ReadWrapper
The read wrapper
@protected, read / write, inherited
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, inherited
disconnect({bool auto: false}) → void
User requested or auto disconnect disconnection
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDone() → void
OnDone listener callback
override
onError(dynamic error) → void
OnError listener callback
@protected, inherited
send(MqttByteBuffer message) → void
Sends the message in the stream to the broker.
toString() String
Returns a string representation of this object.
inherited

Operators

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