send method

void send(
  1. Map data
)

Implementation

void send(Map data) {
  if (_ws?.readyState == WebSocket.open) {
    _ws?.add(jsonEncode(data));
  }
}