1.0.9 • Published 3 years ago

@happy-code/pipes v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago