send method

void send(
  1. MqttByteBuffer message
)

Sends the message in the stream to the broker.

Implementation

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