@zgfe/business-lib 1.1.29-visual.1 → 1.1.29-visual.2

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.
@@ -126,6 +126,7 @@ var SocketClient = /*#__PURE__*/function () {
126
126
  key: "onMessage",
127
127
  value: function onMessage(event) {
128
128
  var res = JSON.parse(event.data);
129
+ if (res.type === SocketClientTypes.RequestType.pong) return;
129
130
  var res_ = res.data;
130
131
  try {
131
132
  res_ = JSON.parse(res.data);
@@ -7,6 +7,7 @@ declare namespace SocketClientTypes {
7
7
  enum RequestType {
8
8
  common = 0,
9
9
  ping = 1,
10
+ pong = 2,
10
11
  login = 3,
11
12
  normal = 5,
12
13
  img = 6
@@ -10,6 +10,7 @@ var SocketClientTypes;
10
10
  (function (RequestType) {
11
11
  RequestType[RequestType["common"] = 0] = "common";
12
12
  RequestType[RequestType["ping"] = 1] = "ping";
13
+ RequestType[RequestType["pong"] = 2] = "pong";
13
14
  RequestType[RequestType["login"] = 3] = "login";
14
15
  RequestType[RequestType["normal"] = 5] = "normal";
15
16
  RequestType[RequestType["img"] = 6] = "img";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.29-visual.1",
3
+ "version": "1.1.29-visual.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -59,5 +59,5 @@
59
59
  "react": "^16.12.0 || ^17.0.0",
60
60
  "yorkie": "^2.0.0"
61
61
  },
62
- "gitHead": "50cb592d16995908023914177748445ece01c2b0"
62
+ "gitHead": "4b4aab8d962968da9a435213ac26f8e7d7473262"
63
63
  }