peristream
A wrapper around periscope.tv event streams, allowing you to easilly access them
Last updated 4 years ago by arnaudrinquin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install peristream 
SYNC missed versions from official npm registry.

Peristream

A wrapper around periscope.tv event streams, allowing you to easilly access them.

Usage

npm i -S peristream

var peristream = require('peristream');

var stream = peristream(urlOrId);

stream.connect().then(function(emitter){
  emitter.on(peristream.ALL, function(message){
    // ...
  });

  emitter.on(peristream.HEARTS, function(message){
    // ...
  });

  emitter.on(peristream.COMMENTS, function(message){
    // ...
  });

  emitter.on(peristream.DISCONNECT, function(message){
    // ...
  });

});

// eventually...
stream.disconnect();

Example

Example browser usage at periscope-examples.

For a node example, simply:

npm start

Current Tags

  • 0.1.7                                ...           latest (4 years ago)

10 Versions

  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 10
Last Month 0
Dependencies (2)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |