mixer-live-updates
v1.0.3
Published
A JavaScript based mixer client used to interface with mixers subsscription protocol and receive live channel updates
Downloads
9
Readme
mixer-live-updates
A JavaScript based mixer client used to interface with Mixers live updates
Installation
npm install --save mixer-live-updates
Usage
const MixerClient = require("./mixerClient");
const mixerClient = new MixerClient(
StreamerID, //id of the streamer you watch for updates
"Client-ID"
);
Listen for Updates
Listening for live viewer count
code
mixerClient.on("viewerCount", data => {
console.log(data);
});
response
{ viewerCount: 1234 }
Listen for stream state updates
code
mixerClient.on("onlineNotification", () => {
//the channel has just gone line
});