@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.
- package/es/socket/index.js +1 -0
- package/es/socket/types.d.ts +1 -0
- package/es/socket/types.js +1 -0
- package/package.json +2 -2
package/es/socket/index.js
CHANGED
|
@@ -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);
|
package/es/socket/types.d.ts
CHANGED
package/es/socket/types.js
CHANGED
|
@@ -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.
|
|
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": "
|
|
62
|
+
"gitHead": "4b4aab8d962968da9a435213ac26f8e7d7473262"
|
|
63
63
|
}
|