Class

Channel

Channel(tool)

Constructor

new Channel(tool)

This module polls channel and stream data on a regular basis and emits events on changes
Parameters:
Name Type Description
tool TTVTool

View Source var/channel.js, line 3

Extends

  • EventEmitter

Events

channeloffline

Fires when the channel goes offline.

View Source var/channel.js, line 177

channelonline

Fires when the channel goes online.

View Source var/channel.js, line 130

gamechange

Fires when the game of the channel changes
Parameters:
Name Type Description
newgame String The new game of the channel

View Source var/channel.js, line 135

statuschange

Fires when the channel status/title changes
Parameters:
Name Type Description
newtitle String The new title/status of the channel

View Source var/channel.js, line 141

viewers

Fires on every data polling and brings you the current viewers count
Parameters:
Name Type Description
viewers Number Number of current viewers

View Source var/channel.js, line 147