> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snakream.tonbo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Binary SSE

> Learn how Snakream encodes binary payloads so they can be delivered over Server-Sent Events.

Standard SSE is text-based. For binary streams (e.g. `application/octet-stream`), Snakream wraps each SSE data event in a JSON envelope with base64 encoding:

```json theme={null}
{
  "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.
