sendJson
External Documentation
void
sendJson(
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);
}
void
sendJson(
Sends a JSON-serializable map through the WebSocket as a JSON string.
void sendJson(Map<String, Object?> data) {
final jsonStr = _jsStringify(data.jsify());
_ws.send(jsonStr);
}