Server-sent events support for Yesod apps.

Latest on Hackage:1.6.0

See all snapshots yesod-eventsource appears in

MIT licensed and maintained by Felipe Lessa

Module documentation for

This version can be pinned in stack with:[email protected]:2e567ca7aa31f9eeef8e1ebb51431f7a220db69db6d70dd85e44dfadc612f557,1110
  • Yesod
    • Yesod.EventSource


It’s easy to send an event from an HTTP client to a server: just send an HTTP request. However, sending events from the server to the client requires more sophisticated approaches. Server-sent events are a standardized way of pushing events from the server to the client.

This package allows your Yesod application to easily send server-sent events. On the client side, you may use the EventSource JavaScript object on browsers that support it ( or a polyfill for browsers that don’t (we support Remy’s polyfill out-of-the-box, although that requires you to explicitly support it).


No changes logged yet