radio_static

0.0.3 • Public • Published

Radio Static

Build Status

Usage

Creating a new instance

var RadioStatic = require('radio_static');

var radio = new RadioStatic();

Adding a new stream to the collective

var stream = new Stream();

radio.assimilate(stream);

Any data read from this stream will be written to all of the other assimilated streams (not itself). Also that data will be emitted as a 'data' event from radio.

Sending data to all assimilated streams

radio.write('something useful');

Notes

Any stream emitting an 'end' event will be remove from the collective.

calling the end method on radio will end all streams in the collective.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i radio_static

Weekly Downloads

1

Version

0.0.3

License

BSD

Last publish

Collaborators

  • bthesorceror