buzzk 1.6.2 → 1.6.3

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.
Files changed (2) hide show
  1. package/lib/chat.js +1 -1
  2. package/package.json +1 -1
package/lib/chat.js CHANGED
@@ -381,7 +381,7 @@ class chzzkChat {
381
381
  "ver": "2",
382
382
  "cmd": 0
383
383
  };
384
- this.#ws.send(JSON.stringify(pingOpt));
384
+ if (this.#ws.readyState == WebSocket.OPEN) this.#ws.send(JSON.stringify(pingOpt));
385
385
 
386
386
  setTimeout(() => {
387
387
  return this.#ping();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "1.6.2",
4
+ "version": "1.6.3",
5
5
  "description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",