yesod/yesod-eventsource
2020-11-08 12:52:23 +02:00
..
Yesod Replace HandlerT with HandlerFor in the documentation 2020-11-08 10:55:01 +08:00
ChangeLog.md Bump version and update changelog 2020-11-08 18:32:33 +08:00
LICENSE New yesod-eventsource package. 2012-08-19 14:53:15 -03:00
README.md Doc link updates 2014-12-21 15:23:52 +02:00
Setup.lhs wai-eventsource: Add a Setup.lhs file. 2012-08-19 14:59:16 -03:00
yesod-eventsource.cabal New cabal-version for Hackage 2020-11-08 12:52:23 +02:00

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 (https://developer.mozilla.org/en-US/docs/Server-sent_events/EventSource) 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).