buzzk 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/chat.js +3 -3
- package/package.json +1 -1
package/lib/chat.js
CHANGED
|
@@ -46,7 +46,7 @@ class chzzkChat {
|
|
|
46
46
|
//Connect Web Socket
|
|
47
47
|
|
|
48
48
|
//SetPolling
|
|
49
|
-
if (!this.#pollingStatus) this
|
|
49
|
+
if (!this.#pollingStatus) this.#polling();
|
|
50
50
|
//SetPolling
|
|
51
51
|
|
|
52
52
|
//WS Open
|
|
@@ -266,7 +266,7 @@ class chzzkChat {
|
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
async polling () {
|
|
269
|
+
async #polling () {
|
|
270
270
|
if (!this.#ws) return this.#pollingStatus = false;
|
|
271
271
|
this.#pollingStatus = true;
|
|
272
272
|
|
|
@@ -276,7 +276,7 @@ class chzzkChat {
|
|
|
276
276
|
//Get ChatID
|
|
277
277
|
|
|
278
278
|
setTimeout(() => {
|
|
279
|
-
return this
|
|
279
|
+
return this.#polling();
|
|
280
280
|
}, cidRes.polling.callPeriodMilliSecond);
|
|
281
281
|
}
|
|
282
282
|
}
|