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);
  var buffer = messageBytes.buffer;
  var bData = ByteData.view(buffer);
  wsClient.send(bData.jsify()!);
}