MqttBrowserWsConnection class Null safety

The MQTT connection class for the browser websocket interface

Inheritance

Constructors

MqttBrowserWsConnection(EventBus? eventBus)
Default constructor
MqttBrowserWsConnection.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
protocols List<String>
The websocket subprotocol list
read / write
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
override
connectAuto(String server, int port) Future<MqttClientConnectionStatus?>
Connect Auto
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
override
onError(dynamic error) → void
OnError listener callback
override
send(MqttByteBuffer message) → void
Sends the message in the stream to the broker.
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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