@midwayjs/socketio 3.15.6 → 3.16.0
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/dist/framework.js +4 -1
- package/package.json +6 -6
package/dist/framework.js
CHANGED
|
@@ -184,11 +184,14 @@ let MidwaySocketIOFramework = class MidwaySocketIOFramework extends core_1.BaseF
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
if (nsp.adapter) {
|
|
187
|
+
if (nsp.adapter && nsp.adapter.on) {
|
|
188
188
|
nsp.adapter.on('error', err => {
|
|
189
189
|
this.logger.error(err);
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
+
nsp.on('error', err => {
|
|
193
|
+
this.logger.error(err);
|
|
194
|
+
});
|
|
192
195
|
}
|
|
193
196
|
async bindSocketResponse(result, socket, propertyName, methodMap) {
|
|
194
197
|
if (result && methodMap[propertyName]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/socketio",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"description": "Midway Web Framework for socket.io",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/mock": "^3.
|
|
27
|
+
"@midwayjs/mock": "^3.16.0",
|
|
28
28
|
"fs-extra": "11.2.0",
|
|
29
|
-
"socket.io-client": "4.7.
|
|
29
|
+
"socket.io-client": "4.7.5"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@midwayjs/core": "^3.
|
|
33
|
-
"socket.io": "4.7.
|
|
32
|
+
"@midwayjs/core": "^3.16.0",
|
|
33
|
+
"socket.io": "4.7.5",
|
|
34
34
|
"socket.io-redis": "^6.1.0"
|
|
35
35
|
},
|
|
36
36
|
"author": "Harry Chen <czy88840616@gmail.com>",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=12"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "7e75fe1bdc9a6df2956f9c22e704063aaa022d76"
|
|
45
45
|
}
|