Concrete SSE framing for the gateway's Ring server transport.
Concrete SSE framing for the gateway's Ring server transport.
(encode-frame event)Encode each body once. Return the bytes to write and whether the body was elided.
Encode each body once. Return the bytes to write and whether the body was elided.
(encode-job-frame event-name job)Render current job state without a replay cursor. A large job is read by ID.
Render current job state without a replay cursor. A large job is read by ID.
(job-sse-frame event-name job)Render the job frame as text. Socket writers use encode-job-frame.
Render the job frame as text. Socket writers use [[encode-job-frame]].
(sse-frame event)Render the canonical frame as text. Socket writers use encode-frame.
Render the canonical frame as text. Socket writers use [[encode-frame]].
Response headers of EVERY SSE endpoint. no-transform + X-Accel-Buffering
are the point: intermediaries (Cloudflare tunnels, nginx) BUFFER a streaming
body unless told not to, and a buffered stream delivers nothing until
disconnect — which reads as "streaming dead until refresh" in any proxied
client.
Response headers of EVERY SSE endpoint. `no-transform` + `X-Accel-Buffering` are the point: intermediaries (Cloudflare tunnels, nginx) BUFFER a streaming body unless told not to, and a buffered stream delivers nothing until disconnect — which reads as "streaming dead until refresh" in any proxied client.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |