A wrapper around periscope.tv event streams, allowing you to easilly access them
npm i -S peristream
var peristream = require('peristream');
var stream = peristream(urlOrId);
stream.connect().then(function(emitter){
emitter.on(peristream.HEARTS, function(message){
// ...
});
emitter.on(peristream.COMMENT, function(message){
// ...
});
emitter.on(peristream.DISCONNECT, function(message){
// ...
});
});
// eventually...
stream.disconnect();