Skip to main content
Standard SSE is text-based. For binary streams (e.g. application/octet-stream), Tonbo Stream wraps each SSE data event in a JSON envelope with base64 encoding:
{
  "encoding": "base64",
  "contentType": "application/octet-stream",
  "payload": "aGVsbG8="
}
This lets binary streams use the same SSE live-tailing path as text streams, so browser EventSource works regardless of content type.