sendJson

External Documentation

void sendJson(

  1. Map<String, Object?> data
)

Sends a JSON-serializable map through the WebSocket as a JSON string.

Implementation

void sendJson(Map<String, Object?> data) {
  final jsonStr = _jsStringify(data.jsify());
  _ws.send(jsonStr);
}