@midwayjs/socketio 3.0.13 → 3.1.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/dist/framework.js +3 -3
- package/dist/index.js +5 -1
- package/package.json +4 -4
package/dist/framework.js
CHANGED
|
@@ -29,16 +29,16 @@ let MidwaySocketIOFramework = class MidwaySocketIOFramework extends core_1.BaseF
|
|
|
29
29
|
async run() {
|
|
30
30
|
if (this.configurationOptions.adapter) {
|
|
31
31
|
this.app.adapter(this.configurationOptions.adapter);
|
|
32
|
-
this.logger.debug('init socket.io-redis ready!');
|
|
32
|
+
this.logger.debug('[midway:socketio] init socket.io-redis ready!');
|
|
33
33
|
}
|
|
34
34
|
// listen port when http server not exist
|
|
35
35
|
if (this.configurationOptions.port) {
|
|
36
36
|
this.app.listen(this.configurationOptions.port, this.configurationOptions);
|
|
37
|
-
this.logger.info(`Socket.io server port = ${this.configurationOptions.port} start success`);
|
|
37
|
+
this.logger.info(`[midway:socketio] Socket.io server port = ${this.configurationOptions.port} start success`);
|
|
38
38
|
}
|
|
39
39
|
else if (this.applicationContext.hasObject(core_1.HTTP_SERVER_KEY)) {
|
|
40
40
|
this.app.attach(this.applicationContext.get(core_1.HTTP_SERVER_KEY), this.configurationOptions);
|
|
41
|
-
this.logger.info('Socket.io server start success and attach to web server');
|
|
41
|
+
this.logger.info('[midway:socketio] Socket.io server start success and attach to web server');
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
async beforeStop() {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/socketio",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Midway Web Framework for socket.io",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@midwayjs/decorator": "^3.0.10",
|
|
27
|
-
"@midwayjs/mock": "^3.
|
|
27
|
+
"@midwayjs/mock": "^3.1.2",
|
|
28
28
|
"@types/socket.io-client": "1.4.36",
|
|
29
29
|
"fs-extra": "10.0.1",
|
|
30
30
|
"socket.io-client": "4.4.1"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@midwayjs/core": "^3.
|
|
33
|
+
"@midwayjs/core": "^3.1.2",
|
|
34
34
|
"@midwayjs/logger": "^2.15.0",
|
|
35
35
|
"socket.io": "4.4.1",
|
|
36
36
|
"socket.io-redis": "^6.1.0"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=12"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "4ff3aa892b76d016f0ea123c7f9520d054d5c96b"
|
|
47
47
|
}
|