Frames one message as a single NDJSON line (UTF-8 JSON object plus \n). One object per line — NOT JSONP.
\n
static String frameLine(Map<String, dynamic> frame) => '${jsonEncode(frame)}\n';