eventsourced: Server-Sent Events the UNIX way
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
eventsourced streams stdin to a TCPIP port as @textevent-source@ .
On the server:
$ ping example.com | eventsourced --port=1337 --allow-origin=localhost
In the browser:
new EventSource('http://0.0.0.0:1337').onmessage = e => console.log(e.data)
PING example.com (93.184.216.34): 56 data bytes 64 bytes from 93.184.216.34: icmp_seq=0 ttl=50 time=86.586 ms 64 bytes from 93.184.216.34: icmp_seq=1 ttl=50 time=89.107 ms 64 bytes from 93.184.216.34: icmp_seq=2 ttl=50 time=88.805 ms 64 bytes from 93.184.216.34: icmp_seq=3 ttl=50 time=88.843 ms 64 bytes from 93.184.216.34: icmp_seq=4 ttl=50 time=89.181 ms 64 bytes from 93.184.216.34: icmp_seq=5 ttl=50 time=89.159 ms 64 bytes from 93.184.216.34: icmp_seq=6 ttl=50 time=87.214 ms ...
Properties
Versions | 0.1.1.3, 1.0.0.0, 1.1.0.0, 1.1.1.0 |
---|---|
Change log | None available |
Dependencies | base (>=4.7 && <5), blaze-builder, bytestring, eventsourced, wai, wai-extra, warp [details] |
License | MIT |
Copyright | 2016 Richard Towers |
Author | Richard Towers |
Maintainer | richard@richard-towers.com |
Category | Web |
Home page | https://github.com/githubuser/eventsourced#readme |
Source repo | head: git clone https://github.com/githubuser/eventsourced |
Uploaded | by richardTowers at 2016-05-14T15:02:23Z |
Modules
[Index]
- Network
Downloads
- eventsourced-0.1.1.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees