VentHub
Redux PubSub Service over WebSockets
Installation
ventsh instead)
As a script (but you should really consider usingnpm i -g venthub
As a module
The same, just without the -g
part.
Usage
As a script
Running venthub [PORT=3000]
from any shell should get you up and running. There really isn't much to do past this point.
As a module
; const vent = processendPORT || 3000; // this jumpstarts the server, no explicit call needed vent // this will be called on every new connectionvent // this will be called on every connection closedvent // this will be called every time *a Vent* publishes an action