Skip to content

mynameisrufus/node-event-stream-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-event-stream-proxy

node-event-stream-proxy allows you to proxy an event stream most likely from a threaded server to many consumers.

Current status

Possibly broken, not released to npm, no tests.

Usage

var EventStreamProxy = require('event-stream-proxy'),
    streamProxy = new EventStreamProxy('http://localhost:8080/stream');

streamProxy.start();

http.createServer(function (req, res) {
  if (req.url == '/stream') {
    streamProxy.web(req, res);
  } else {
    // do something else
  };
}).listen(9000);

TODO

  • Add tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published