MqttServerSecureConnection class

The MQTT server secure connection class

Inheritance

Constructors

MqttServerSecureConnection(SecurityContext context, EventBus eventBus, bool onBadCertificate(X509Certificate certificate))
Default constructor
MqttServerSecureConnection.fromConnect(String server, int port, EventBus eventBus)
Initializes a new instance of the MqttSecureConnection 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
context SecurityContext
The security context for secure usage
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
messageStream MqttByteBuffer
The read buffer
@protected, read / write, inherited
onBadCertificate bool Function(X509Certificate certificate)
Callback function to handle bad certificate. if true, ignore the error.
read / write
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
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