@happy-code/pipes
v1.0.9
Published
Pipes is an express wrapper for nodejs that enables multi server/client side apps to share a common state and real-time updates.
Downloads
14
Readme
Pipes
Whats this then?
Pipes is an express wrapper for nodejs that enables multiple web-servers and multiple client side apps to share a common state with automated real-time updates
Client applications that wish to utilise pipes will need to either follow the [TBD pipes-fe-socket-protocol] or implement [@happy-code/react-pipes the front end Library] library
Installation
bash $>npm install @happy-code/pipes
Usage
[minimal example]
The following will
const Pipes = require("@happy-code/pipes")
const pipe = Pipes();
pipe.client("/path/to/public", {
port: 4000,
});
pipe.useContext({ counter: 0 });
pipe.start();