Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmuellr/pusheventd
HTTP server that converts non-GET requests to server-sent events
https://github.com/pmuellr/pusheventd
Last synced: about 1 month ago
JSON representation
HTTP server that converts non-GET requests to server-sent events
- Host: GitHub
- URL: https://github.com/pmuellr/pusheventd
- Owner: pmuellr
- Created: 2014-02-13T23:14:57.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-14T14:18:05.000Z (almost 11 years ago)
- Last Synced: 2024-04-09T21:04:47.180Z (9 months ago)
- Language: CoffeeScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pusheventd
================================================================================Converts non-GET HTTP requests to
[server-sent events](http://dev.w3.org/html5/eventsource/).The server accepts non-GET HTTP requests on path `/events/` and echoes
them on an event source along the path `/events/`. Example, if you
submit an HTTP POST request to `/events/my-event/foo`, it will be available in the
event stream `/events/my-event/foo`.The data sent on the event is a JSON object with the following properties:
* `method`: the HTTP request method used to push the event
* `headers`: the HTTP request headers
* `body`: the body of the request that pushed the eventusage
--------------------------------------------------------------------------------pusheventd [options]
options:
-p --port NUMBER tcp/ip to run server on
-v --verbose be verbose
-h --help print this helpThe port may also be specified in the PORT environment variable.
notes / caveats
--------------------------------------------------------------------------------This server is not currently designed to scale, in terms of running
multiple instances "on the cloud".There is no security at all. You probably don't want to advertise the URL to
your server to the world, or at least don't advertise the path you push and
pull from.Send me a [Pull Request](https://github.com/pmuellr/pusheventd/pulls)!
license
--------------------------------------------------------------------------------Apache License, Verison 2.0