MqttServerNormalConnection class

The MQTT normal(insecure TCP) server connection class

Inheritance

Constructors

MqttServerNormalConnection(EventBus eventBus)
Default constructor
MqttServerNormalConnection.fromConnect(String server, int port, EventBus eventBus)
Initializes a new instance of the MqttConnection 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<MqttClientConnectionStatus>
Connect - overridden
override
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
@protected, inherited
onError(dynamic error) → void
OnError listener callback
@protected, inherited
send(MqttByteBuffer message) → void
Sends the message in the stream to the broker.
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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