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);
  var buffer = messageBytes.buffer;
  var bData = ByteData.view(buffer);
  client?.sendTypedData(bData);
}