@nmtjs/ws-transport 0.15.0-beta.15 → 0.15.0-beta.16
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/types.d.ts +3 -3
- package/package.json +9 -9
- package/src/types.ts +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MaybePromise, OneOf } from '@nmtjs/common';
|
|
2
2
|
import type { Hooks } from 'crossws';
|
|
3
3
|
export type WsTransportServerRequest = {
|
|
4
4
|
url: URL;
|
|
@@ -75,7 +75,7 @@ export type WsAdapterParams<R extends keyof WsTransportRuntimes = keyof WsTransp
|
|
|
75
75
|
runtime?: WsTransportRuntimes[R];
|
|
76
76
|
};
|
|
77
77
|
export interface WsAdapterServer {
|
|
78
|
-
stop: () =>
|
|
79
|
-
start: () =>
|
|
78
|
+
stop: () => MaybePromise<any>;
|
|
79
|
+
start: () => MaybePromise<string>;
|
|
80
80
|
}
|
|
81
81
|
export type WsAdapterServerFactory<R extends keyof WsTransportRuntimes = keyof WsTransportRuntimes> = (params: WsAdapterParams<R>) => WsAdapterServer;
|
package/package.json
CHANGED
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.56.0",
|
|
15
|
-
"@nmtjs/client": "0.15.0-beta.
|
|
16
|
-
"@nmtjs/
|
|
17
|
-
"@nmtjs/
|
|
18
|
-
"@nmtjs/
|
|
15
|
+
"@nmtjs/client": "0.15.0-beta.16",
|
|
16
|
+
"@nmtjs/gateway": "0.15.0-beta.16",
|
|
17
|
+
"@nmtjs/common": "0.15.0-beta.16",
|
|
18
|
+
"@nmtjs/protocol": "0.15.0-beta.16"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@types/bun": "^1.3.0",
|
|
22
22
|
"@types/deno": "^2.3.0",
|
|
23
23
|
"@types/node": "^24",
|
|
24
24
|
"uWebSockets.js": "^20.56.0",
|
|
25
|
-
"@nmtjs/common": "0.15.0-beta.
|
|
26
|
-
"@nmtjs/gateway": "0.15.0-beta.
|
|
27
|
-
"@nmtjs/core": "0.15.0-beta.
|
|
28
|
-
"@nmtjs/protocol": "0.15.0-beta.
|
|
25
|
+
"@nmtjs/common": "0.15.0-beta.16",
|
|
26
|
+
"@nmtjs/gateway": "0.15.0-beta.16",
|
|
27
|
+
"@nmtjs/core": "0.15.0-beta.16",
|
|
28
|
+
"@nmtjs/protocol": "0.15.0-beta.16"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"@types/bun": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"LICENSE.md",
|
|
53
53
|
"README.md"
|
|
54
54
|
],
|
|
55
|
-
"version": "0.15.0-beta.
|
|
55
|
+
"version": "0.15.0-beta.16",
|
|
56
56
|
"scripts": {
|
|
57
57
|
"clean-build": "rm -rf ./dist",
|
|
58
58
|
"build": "tsc --declaration --sourcemap",
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MaybePromise, OneOf } from '@nmtjs/common'
|
|
2
2
|
import type { Hooks } from 'crossws'
|
|
3
3
|
|
|
4
4
|
export type WsTransportServerRequest = {
|
|
@@ -114,8 +114,8 @@ export type WsAdapterParams<
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
export interface WsAdapterServer {
|
|
117
|
-
stop: () =>
|
|
118
|
-
start: () =>
|
|
117
|
+
stop: () => MaybePromise<any>
|
|
118
|
+
start: () => MaybePromise<string>
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export type WsAdapterServerFactory<
|