master
vampirefrog 2 years ago
parent 2e03d67a9d
commit 858b42bdda

@ -17,11 +17,7 @@ class TwitchChannel extends Channel {
this.viewerCount = null;
this.chat.getUserInfo(this.name).then((data) => {
this.pubWs = new TwitchPubSubSocket(data.id);
this.pubWs.on('verbose', (data) => {
console.log('Twitch PubWS', data);
});
this.pubWs.on('MESSAGE', (data) => {
console.log('MESSAGE', data);
if(data && data.data && data.data.message) {
let parsed = JSON.parse(data.data.message);

@ -34,7 +34,6 @@ class TwitchPubSubSocket extends EventEmitter {
this.emit('open');
this.sendPing();
this.send('LISTEN', {"topics":["video-playback-by-id."+this.channelID]});
console.log('open');
});
this.webSocket.once('error', (err) => {

Loading…
Cancel
Save