sendEncoded method

void sendEncoded(
  1. String jsonLine
)

Sends a message the native layer already encoded as one JSON object (no trailing newline). It shares this client's buffer and connection.

Implementation

void sendEncoded(String jsonLine) {
  if (_disposed || jsonLine.isEmpty) return;
  _send(<String, Object?>{kEncodedLineKey: jsonLine});
}