@hackage yesod-eventsource1.0
Server-sent events support for Yesod apps.
Categories
License
MIT
Maintainer
Felipe Lessa <felipe.lessa@gmail.com>
Links
Versions
Installation
Dependencies (7)
- base >=4 && <5
- blaze-builder
- conduit >=0.5 && <0.6
- transformers
- wai >=1.3 && <1.4
- wai-eventsource >=1.3 && <1.4 Show all…
Dependents (1)
@hackage/acme-everything
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 (http://www.w3.org/TR/eventsource/) 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.orgen-USdocsServer-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).