npm

@happy-code/pipes

1.0.9 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i @happy-code/pipes

Weekly Downloads

2

Version

1.0.9

License

ISC

Unpacked Size

14.4 kB

Total Files

18

Last publish

Collaborators

  • happycoder