sendText method

void sendText(
  1. String text
)

Implementation

void sendText(String text) {
  var frame = WebSocketFrame(OpCode.text, mask: mask, payload: Uint8List(0));
  var raw = frame.rawTextBytes(text.codeUnits);
  socket.add(raw.toList());
}