hemerajs / websub-hub

A WebSub Hub implementation in Node.js
MIT License
43 stars 5 forks source link
hub pubsub websub

WebSub-Hub

npm version Build Status Coverage Status npm version stability

A WebSub Hub implementation in Node.js

WebSub provides a common mechanism for communication between publishers of any kind of Web content and their subscribers, based on HTTP web hooks. Subscription requests are relayed through hubs, which validate and verify the request. Hubs then distribute new and updated content to subscribers when it becomes available.

Expectations

Roadmap

Additional roadmap

Specification

https://w3c.github.io/websub/

Useful links

Getting started

$ docker run -d -p 27017:27017 -p 28017:28017 -e AUTH=no tutum/mongodb
$ npm i -g websub-hub-cli
$ websub-hub-cli -l info -m mongodb://localhost:27017/hub

Play

$ docker run -d -p 27017:27017 -p 28017:28017 -e AUTH=no tutum/mongodb
$ node examples\full-example.js
$ node examples\ws-full-example.js

Test

$ npm run test