sendText method
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());
}
void sendText(String text) {
var frame = WebSocketFrame(OpCode.text, mask: mask, payload: Uint8List(0));
var raw = frame.rawTextBytes(text.codeUnits);
socket.add(raw.toList());
}