yesod-eventsource: Server-sent events support for Yesod apps.

[ library, mit, web, yesod ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.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, 1.4.1, 1.6.0, 1.6.0.1
Change log ChangeLog.md
Dependencies base (>=4.10 && <5), blaze-builder, conduit (>=1.3), transformers, wai (>=1.3), wai-extra, yesod-core (>=1.6 && <1.7) [details]
License MIT
Author Felipe Lessa <felipe.lessa@gmail.com>
Maintainer Felipe Lessa <felipe.lessa@gmail.com>
Category Web, Yesod
Home page http://www.yesodweb.com/
Source repo head: git clone https://github.com/yesodweb/yesod
Uploaded by MichaelSnoyman at 2020-11-08T10:52:34Z
Distributions LTSHaskell:1.6.0.1, NixOS:1.6.0.1, Stackage:1.6.0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 10083 total (22 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-11-08 [all 1 reports]

Readme for yesod-eventsource-1.6.0.1

[back to package description]

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