0.4.2 • Published 8 years ago
halo-stream v0.4.2
halo-stream
Work-in-progress infrastructure to receive events from the Halo 5 developer APIs. Written in TypeScript.
import HaloStream = require('halo-stream');
let stream = new HaloStream(API_KEY)
.follow('crazy2can', 'Taylormade151', 'Original RemarK')
.onMatch(function(match, players) {
// Some of the followed players just finished `match`!
// Their match stats are provided in `players` for convenience.
})
.onMedal(function(medal, player) {
// Notional, and probably not possible with current developer APIs.
// Oh man, wouldn't that be cool.
})
Developing
[halo-stream]$ npm install
[halo-stream]$ tsd install
[halo-stream]$ tsc --watch
Testing
[halo-stream]$ npm test