MqttBrowserConnection class abstract

The MQTT browser connection base class

Inheritance
Implementers

Constructors

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

Properties

client ↔ dynamic
The socket that maintains the connection to the MQTT broker.
getter/setter pairinherited
clientEventBus ↔ EventBus?
The event bus
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
messageStream MqttByteBuffer
The read buffer
getter/setter pairinherited
onDisconnected DisconnectCallback?
Unsolicited disconnection callback
getter/setter pairinherited
readWrapper MqttReadWrapper
The read wrapper
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wsClient → WebSocket
The socket that maintains the connection to the MQTT broker. Get and set methods preserve type information.
no setter

Methods

connect(String server, int port) Future<void>
Connect, must be overridden in connection classes
override
connectAuto(String server, int port) Future<void>
Connect for auto reconnect , must be overridden in connection classes
override
disconnect({bool auto = false}) → void
User requested or auto disconnect disconnection
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onData(dynamic byteData) → void
OnData listener callback
onDone() → void
OnDone listener callback
override
onError(dynamic error) → void
OnError listener callback
inherited
onListen() List<StreamSubscription>
Implement stream subscription
send(MqttByteBuffer message) → void
Sends the message in the stream to the broker.
set(WebSocket ws) → dynamic
toString() String
A string representation of this object.
inherited

Operators

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