Server-sent events support for Yesod apps.

Version on this page:1.4.1
LTS Haskell 22.17:
Stackage Nightly 2024-04-19:
Latest on Hackage:

See all snapshots yesod-eventsource appears in

MIT licensed and maintained by Felipe Lessa
This version can be pinned in stack with:yesod-eventsource-1.4.1@sha256:0df325e67b7bd06ee30e7ab5f4c62a78bb938a6574dbfe4b8cf27b8e4a321af8,1108

Module documentation for 1.4.1


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).



  • Fix warnings