1.0.3 • Published 4 years ago

mixer-live-updates v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

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
});

live events

onlineNotification

offlineNotification

viewerCount

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago