Michael Snoyman bed6dafce8 Doc link updates пре 10 година
..
Yesod 82de52e3d2 Various additional WAI 3.0 fixes пре 10 година
ChangeLog.md bed6dafce8 Doc link updates пре 10 година
LICENSE 183b640a55 New yesod-eventsource package. пре 12 година
README.md bed6dafce8 Doc link updates пре 10 година
Setup.lhs b8b5ec49fb wai-eventsource: Add a Setup.lhs file. пре 12 година
yesod-eventsource.cabal bed6dafce8 Doc link updates пре 10 година

README.md

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