@midwayjs/ws 4.0.0-beta.7 → 4.0.0-beta.8
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.d.ts +1 -4
- package/dist/framework.js +5 -6
- package/dist/interface.d.ts +0 -3
- package/package.json +5 -5
package/dist/framework.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import { BaseFramework, CommonMiddlewareUnion, ContextMiddlewareManager, IMidwayBootstrapOptions } from '@midwayjs/core';
|
|
4
2
|
import * as http from 'http';
|
|
5
|
-
import { Application, Context,
|
|
3
|
+
import { Application, Context, IMidwayWSConfigurationOptions, NextFunction, UpgradeAuthHandler } from './interface';
|
|
6
4
|
export declare class MidwayWSFramework extends BaseFramework<Application, Context, IMidwayWSConfigurationOptions> {
|
|
7
5
|
server: http.Server;
|
|
8
6
|
protected heartBeatInterval: NodeJS.Timeout;
|
|
@@ -11,7 +9,6 @@ export declare class MidwayWSFramework extends BaseFramework<Application, Contex
|
|
|
11
9
|
protected frameworkLoggerName: string;
|
|
12
10
|
configure(): IMidwayWSConfigurationOptions;
|
|
13
11
|
applicationInitialize(options: IMidwayBootstrapOptions): Promise<void>;
|
|
14
|
-
app: IMidwayWSApplication;
|
|
15
12
|
run(): Promise<void>;
|
|
16
13
|
protected beforeStop(): Promise<void>;
|
|
17
14
|
/**
|
package/dist/framework.js
CHANGED
|
@@ -13,12 +13,11 @@ const util_1 = require("util");
|
|
|
13
13
|
const debug = (0, util_1.debuglog)('midway:debug');
|
|
14
14
|
const WebSocket = require("ws");
|
|
15
15
|
let MidwayWSFramework = class MidwayWSFramework extends core_1.BaseFramework {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
16
|
+
server;
|
|
17
|
+
heartBeatInterval;
|
|
18
|
+
connectionMiddlewareManager = this.createMiddlewareManager();
|
|
19
|
+
upgradeAuthHandler = null;
|
|
20
|
+
frameworkLoggerName = 'wsLogger';
|
|
22
21
|
configure() {
|
|
23
22
|
return this.configService.getConfiguration('webSocket');
|
|
24
23
|
}
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
1
|
import * as WebSocket from 'ws';
|
|
5
2
|
import { CommonMiddlewareUnion, ContextMiddlewareManager, IConfigurationOptions, IMidwayApplication, IMidwayContext, NextFunction as BaseNextFunction } from '@midwayjs/core';
|
|
6
3
|
import type { IncomingMessage } from 'http';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/ws",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.8",
|
|
4
4
|
"description": "Midway Web Framework for ws",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
],
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@midwayjs/core": "^4.0.0-beta.
|
|
27
|
-
"@midwayjs/koa": "^4.0.0-beta.
|
|
28
|
-
"@midwayjs/mock": "^4.0.0-beta.
|
|
26
|
+
"@midwayjs/core": "^4.0.0-beta.8",
|
|
27
|
+
"@midwayjs/koa": "^4.0.0-beta.8",
|
|
28
|
+
"@midwayjs/mock": "^4.0.0-beta.8",
|
|
29
29
|
"fs-extra": "11.3.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=20"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
|
|
44
44
|
}
|