eventsourced: Server-Sent Events the UNIX way

[ library, mit, network, program ] [ Propose Tags ]

eventsourced streams stdin to a TCP/IP port as text/event-source.

On the server:

$ ping | eventsourced --port=1337 --allow-origin=localhost

In the browser:

 new EventSource('').onmessage = e => console.log(
 PING ( 56 data bytes
 64 bytes from icmp_seq=0 ttl=50 time=86.586 ms
 64 bytes from icmp_seq=1 ttl=50 time=89.107 ms
 64 bytes from icmp_seq=2 ttl=50 time=88.805 ms
 64 bytes from icmp_seq=3 ttl=50 time=88.843 ms
 64 bytes from icmp_seq=4 ttl=50 time=89.181 ms
 64 bytes from icmp_seq=5 ttl=50 time=89.159 ms
 64 bytes from icmp_seq=6 ttl=50 time=87.214 ms


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,
Dependencies base (>=4.7 && <5), blaze-builder, bytestring, eventsourced, wai, wai-extra, warp [details]
License MIT
Copyright 2016 Richard Towers
Author Richard Towers
Category Network
Home page
Source repo head: git clone
Uploaded by richardTowers at 2016-05-15T14:31:25Z
Executables eventsourced
Downloads 2101 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-05-15 [all 1 reports]