send method

  1. @override
void send(
  1. MqttByteBuffer message
)
override

Sends the message in the stream to the broker.

Implementation

@override
void send(MqttByteBuffer message) {
  final messageBytes = message.read(message.length);
  client?.add(messageBytes.toList());
}