The yesod-eventsource package

[Tags: library, mit]

API docs and the README are available at http://www.stackage.org/package/yesod-eventsource


[Skip to ReadMe]

Properties

Versions1.0, 1.0.0.1, 1.0.1, 1.1, 1.1.0.1, 1.1.0.2, 1.1.1, 1.1.1.1, 1.4.0, 1.4.0.1
Change logChangeLog.md
Dependenciesbase (==4.*), blaze-builder, conduit (>=0.5 && <1.3), transformers, wai (>=1.3), wai-eventsource (>=1.3), wai-extra, yesod-core (==1.4.*) [details]
LicenseMIT
AuthorFelipe Lessa <felipe.lessa@gmail.com>
MaintainerFelipe Lessa <felipe.lessa@gmail.com>
StabilityStable
CategoryWeb, Yesod
Home pagehttp://www.yesodweb.com/
Source repositoryhead: git clone https://github.com/yesodweb/yesod
UploadedSun Dec 21 13:50:27 UTC 2014 by MichaelSnoyman
DistributionsLTSHaskell:1.4.0.1, NixOS:1.4.0.1, Stackage:1.4.0.1
Downloads1909 total (97 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for yesod-eventsource-1.4.0.1

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