0.4.0 • Published 3 years ago

sse-server v0.4.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

view on npm npm module downloads Gihub repo dependents Gihub package dependents Build Status js-standard-style

sse-server

Pipe an event stream from terminal to browser.

Synopsis

Launch the server.

$ sse-server
SSE server: http://localhost:9000
Input socket: localhost:9090

Pipe events to the input socket.

$ echo '{ "name": "something", "data": "one" }' | nc -c localhost 9090
$ echo '{ "name": "something", "data": "two" }' | nc -c localhost 9090

Connect a browser to the SSE server to consume the server-sent events.

$ curl http://localhost:9000
event: something
data: "one"

event: something
data: "two"

© 2018-21 Lloyd Brookes \75pound@gmail.com\.

0.4.0

3 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago