# `Teya.SSE`
[🔗](https://github.com/sgerrand/ex_teya/blob/v0.4.2/lib/teya/sse.ex#L1)

SSE streaming helper for Teya POSLink streaming endpoints.

Wraps `Req` with the `req_server_sent_events` plugin to decode the byte
stream into events. JSON-decodes the `data` field of each event and forwards
decoded maps to the caller process as `{ok_tag, id, event_type, data}`
messages. Non-200 responses and transport errors are forwarded as
`{error_tag, id, reason}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
