| Did you know ... | Search Documentation: |
| Predicate sse_open/0 |
event_stream
transfer mode and each sse_send/1 or sse_send/2 is flushed to the
client. The mandatory headers emitted are:
Content-Type: text/event-streamCache-Control: no-cacheX-Accel-Buffering: no (disables nginx response buffering)
cors_enable/0 is called after the mandatory headers, so the
http:cors setting controls whether an Access-Control-Allow-Origin
header is emitted. Browser-based EventSource clients on a different
origin need this; non-browser clients do not.
Options:
Name-Value pairs. Both Name and Value are written with
format/3 using `~w`.