Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arnaudrinquin/peristream
A wrapper around periscope.tv event streams, allowing you to easilly access them
https://github.com/arnaudrinquin/peristream
Last synced: 5 days ago
JSON representation
A wrapper around periscope.tv event streams, allowing you to easilly access them
- Host: GitHub
- URL: https://github.com/arnaudrinquin/peristream
- Owner: ArnaudRinquin
- Created: 2015-10-10T23:25:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T19:46:20.000Z (about 9 years ago)
- Last Synced: 2024-04-14T09:01:05.500Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Peristream
A wrapper around [periscope.tv](https://www.periscope.tv/) event streams, allowing you to easilly access them.
## Usage
```shell
npm i -S peristream
``````js
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`](https://github.com/ArnaudRinquin/peristream-examples).
For a node example, simply:
```shell
npm start
```