buzzk 1.8.2 β†’ 1.8.4

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/README.md CHANGED
@@ -17,6 +17,10 @@
17
17
 
18
18
  ## πŸ“– μ—…λ°μ΄νŠΈ λ‚΄μ—­
19
19
 
20
+ - μ±„νŒ… 채널 연결을 μœ μ§€ν•˜μ§€ λͺ»ν•˜λŠ” 문제 ν•΄κ²°
21
+
22
+ >
23
+
20
24
  - μ±„νŒ… 채널이 없을 λ•Œ 였λ₯˜κ°€ μƒκΈ°λŠ” 문제 ν•΄κ²°
21
25
 
22
26
  >
@@ -41,14 +45,6 @@
41
45
 
42
46
  - chat 의 λ©”μ„Έμ§€λ₯Ό ν•Έλ“€λ§ν•˜λ˜ 쀑 μ˜λ„μΉ˜ μ•Šκ²Œ 였λ₯˜κ°€ λ‚˜λŠ” 문제 ν•΄κ²°
43
47
 
44
- >
45
-
46
- - WebSocket is not open 문제 ν•΄κ²°
47
-
48
- >
49
-
50
- - chat.getUserInfo ν•¨μˆ˜ μΆ”κ°€
51
-
52
48
  ## βœ’οΈ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ κ°€μ΄λ“œ (v.1.2.x -> v.1.3.0)
53
49
 
54
50
  <details>
package/lib/chat.js CHANGED
@@ -484,19 +484,21 @@ class chzzkChat {
484
484
  //Reconnect
485
485
  this.#pollingStatus = false;
486
486
  await this.disconnect();
487
- await this.connect();
488
- for (let o in this.#callbacks) {
489
- if (this.#callbacks[o].type === "message") this.#onMessageHandler(this.#callbacks[o].callback);
490
- else if (this.#callbacks[o].type === "donation") this.#onDonationHandler(this.#callbacks[o].callback);
487
+ let connectRes = await this.connect();
488
+ if (connectRes) {
489
+ for (let o in this.#callbacks) {
490
+ if (this.#callbacks[o].type === "message") this.#onMessageHandler(this.#callbacks[o].callback);
491
+ else if (this.#callbacks[o].type === "donation") this.#onDonationHandler(this.#callbacks[o].callback);
492
+ }
493
+ return;
491
494
  }
492
- return;
493
495
  //Reconnect
494
496
  }
495
497
  //Get ChatID
496
498
 
497
499
  let interval;
498
500
  if (cidRes && cidRes.polling && cidRes.polling.callPeriodMilliSecond) interval = cidRes.polling.callPeriodMilliSecond;
499
- else interval = 10000;
501
+ else interval = 30000;
500
502
 
501
503
  setTimeout(() => {
502
504
  return this.#polling();
package/lib/live.js CHANGED
@@ -58,7 +58,7 @@ async function getDetail (channelID) {
58
58
  }
59
59
 
60
60
  catch(error) {
61
- return;
61
+ return resolve(null);
62
62
  }
63
63
 
64
64
  });
@@ -100,7 +100,7 @@ async function getStatus (channelID) {
100
100
  }
101
101
 
102
102
  catch(error) {
103
- return;
103
+ return resolve(null);
104
104
  }
105
105
 
106
106
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "1.8.2",
4
+ "version": "1.8.4",
5
5
  "description": "λΏŒμ§€μ§ (BUZZK) - μΉ˜μ§€μ§(CHZZK) 챗봇을 λ”μš± μ‰½κ²Œ κ°œλ°œν•  수 μžˆλ„λ‘ λ•λŠ” 비곡식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",