hyperspeed.js
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -49,8 +49,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
if (this.options.trackViewers) { | ||
this.send({ type: 'PollConnectedViewers' }); | ||
this.viewerCountChecker = setInterval(() => { | ||
this.send({ type: 'PollConnectedViewers' }); | ||
}, 5e3); | ||
} | ||
this.ws.onmessage = (e) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -99,2 +93,8 @@ var _a; | ||
}); | ||
if (this.options.trackViewers) { | ||
this.send({ type: 'PollConnectedViewers' }); | ||
this.viewerCountChecker = setInterval(() => { | ||
this.send({ type: 'PollConnectedViewers' }); | ||
}, 5e3); | ||
} | ||
break; | ||
@@ -101,0 +101,0 @@ } |
{ | ||
"type": "module", | ||
"name": "hyperspeed.js", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Library for connecting to Hyperspeed streams.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
9090