Server-sent events as data: a transducer from lines to events.
Server-sent events as data: a transducer from lines to events.
(events)A stateful transducer from the lines of an SSE stream to event maps {:event name, :data string}. :event is absent for unnamed events. Multiple data lines are joined with newlines. Comment lines and fields other than event and data are ignored, and an event that is still incomplete when the input ends is discarded, as the SSE standard says.
A stateful transducer from the lines of an SSE stream to event maps
{:event name, :data string}. :event is absent for unnamed events.
Multiple data lines are joined with newlines. Comment lines and fields
other than event and data are ignored, and an event that is still
incomplete when the input ends is discarded, as the SSE standard says.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 |