Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stratigos/nodepubsubexample
nodejs example socket broadcasting app. Uses express and axon.
https://github.com/stratigos/nodepubsubexample
Last synced: 16 days ago
JSON representation
nodejs example socket broadcasting app. Uses express and axon.
- Host: GitHub
- URL: https://github.com/stratigos/nodepubsubexample
- Owner: stratigos
- Created: 2015-04-02T21:32:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-06T17:27:44.000Z (almost 10 years ago)
- Last Synced: 2024-11-06T19:50:11.750Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### nodejs pubsub socket broadcasting example ###
Example Use:
// run: redis-server
// run: node app
make request with curl:
````
curl -X POST http://localhost:8000 \
-H "content-type: application/json" \
-d '[{"badge_id":"foo bar badge"}]'
````check by running `redis-cli`
````
LRANGE badges 0 -1
````also check via GET request:
````
curl http://localhost:8000/badges
````@see revision log for sequential steps to construct this broadcasting server
@see https://github.com/Stratigos/nodepubsubexamplesubscriber for subscription example