@dokebi/websocket 0.4.1 → 0.4.3
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/AI.md +38 -22
- package/README.md +8 -7
- package/dist/dependency.d.ts +4 -0
- package/dist/dependency.js +9 -0
- package/dist/errors.js +1 -1
- package/dist/gateway.d.ts +7 -1
- package/dist/gateway.js +483 -68
- package/dist/index.js +17 -4
- package/dist/options.d.ts +3 -0
- package/dist/options.js +28 -5
- package/dist/router.d.ts +2 -0
- package/dist/router.js +19 -5
- package/dist/transport.js +1 -0
- package/dist/types.d.ts +31 -1
- package/options.schema.json +31 -0
- package/package.json +11 -7
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { definePlugin, optionalDependency } from '@dokebi/core';
|
|
2
|
-
import { dependency as web } from '@dokebi/web/dependency';
|
|
1
|
+
import { definePlugin, optionalDependency, providerDependency, } from '@dokebi/core';
|
|
3
2
|
import { realtime } from '@dokebi/web/points';
|
|
4
3
|
// Always installed with this plugin (peer, required in the manifest): the provider's own file
|
|
5
4
|
// holds the name, package and range (D-0063 §6).
|
|
@@ -8,6 +7,16 @@ import { WebsocketError } from './errors.js';
|
|
|
8
7
|
import { Gateway } from './gateway.js';
|
|
9
8
|
import { options } from './options.js';
|
|
10
9
|
import { websocketTransport } from './transport.js';
|
|
10
|
+
/**
|
|
11
|
+
* dokebi-web 0.4.3 or later: the shared before-hijack steps (`@dokebi/web/points`). A local
|
|
12
|
+
* descriptor instead of '@dokebi/web/dependency' (whose range stays ^0.4.0), as in dokebi-auth.
|
|
13
|
+
*/
|
|
14
|
+
const web = providerDependency({
|
|
15
|
+
name: 'dokebi-web',
|
|
16
|
+
version: '^0.4.3',
|
|
17
|
+
packageName: '@dokebi/web',
|
|
18
|
+
load: () => import('@dokebi/web'),
|
|
19
|
+
});
|
|
11
20
|
export { WebsocketError } from './errors.js';
|
|
12
21
|
export { options } from './options.js';
|
|
13
22
|
export * from './router.js';
|
|
@@ -39,6 +48,10 @@ class WebsocketRuntime {
|
|
|
39
48
|
start() {
|
|
40
49
|
this.#gateway?.start();
|
|
41
50
|
}
|
|
51
|
+
/** D-0154: the connection limits and the ping interval (see Gateway.reconfigure). */
|
|
52
|
+
reload({ options }) {
|
|
53
|
+
return { apply: () => this.#gateway?.reconfigure(options) };
|
|
54
|
+
}
|
|
42
55
|
async drain(context) {
|
|
43
56
|
await this.#gateway?.drain(context.drainSignal);
|
|
44
57
|
}
|
|
@@ -46,8 +59,8 @@ class WebsocketRuntime {
|
|
|
46
59
|
/** Factory input: `{ app, options? }`. Options default to `app.config['dokebi-websocket']`. */
|
|
47
60
|
export const createPlugin = definePlugin({
|
|
48
61
|
name: 'dokebi-websocket',
|
|
49
|
-
version: '0.4.
|
|
50
|
-
core: '^0.4.
|
|
62
|
+
version: '0.4.3',
|
|
63
|
+
core: '^0.4.2',
|
|
51
64
|
options,
|
|
52
65
|
contributes: [realtime],
|
|
53
66
|
dependencies: () => [hub, web, seal],
|
package/dist/options.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type OptionsOf } from '@dokebi/core';
|
|
2
2
|
export declare const options: import("@dokebi/core").OptionsDeclaration<{
|
|
3
|
+
readonly beforeUpgradeTimeoutMs: number;
|
|
3
4
|
readonly heartbeatMs: number;
|
|
5
|
+
readonly hubFanOut: number;
|
|
4
6
|
readonly hubWaitMs: number;
|
|
5
7
|
readonly idleTimeoutMs: number;
|
|
8
|
+
readonly logRepeatWindowMs: number;
|
|
6
9
|
readonly maxBufferedBytes: number;
|
|
7
10
|
readonly maxConnections: number;
|
|
8
11
|
readonly maxPayloadBytes: number;
|
package/dist/options.js
CHANGED
|
@@ -4,24 +4,28 @@ import { defineOptions, option as o } from '@dokebi/core';
|
|
|
4
4
|
* options.schema.json. The rules are the hand parser's before wave B.
|
|
5
5
|
*/
|
|
6
6
|
const LIMIT = 67108864;
|
|
7
|
-
const limit = (defaultValue, description) => o.integer({ minimum: 1, maximum: LIMIT, default: defaultValue, description });
|
|
7
|
+
const limit = (defaultValue, description, more = {}) => o.integer({ minimum: 1, maximum: LIMIT, default: defaultValue, description, ...more });
|
|
8
|
+
/** D-0154: applied while the app runs (read per connection or message; the timer restarts). */
|
|
9
|
+
const live = { reloadable: true };
|
|
8
10
|
export const options = defineOptions({
|
|
9
11
|
maxPayloadBytes: limit(65536, 'Largest incoming frame in bytes.'),
|
|
10
12
|
maxPayload: o.alias('maxPayloadBytes'),
|
|
11
|
-
maxConnections: limit(128, 'Open connections this process accepts at most.'),
|
|
12
|
-
maxPending: limit(32, 'Messages of one connection waiting for its handler at most; its presence calls are bounded by the same number, separately (later changes are merged).'),
|
|
13
|
+
maxConnections: limit(128, 'Open connections this process accepts at most.', live),
|
|
14
|
+
maxPending: limit(32, 'Messages of one connection waiting for its handler at most; its presence calls are bounded by the same number, separately (later changes are merged).', live),
|
|
13
15
|
maxPendingMessages: o.alias('maxPending'),
|
|
14
|
-
maxBufferedBytes: limit(1048576, 'Bytes waiting to be sent to one connection at most; a slower client is closed (SLOW_CONSUMER).'),
|
|
16
|
+
maxBufferedBytes: limit(1048576, 'Bytes waiting to be sent to one connection at most; a slower client is closed (SLOW_CONSUMER).', live),
|
|
15
17
|
shutdownTimeoutMs: limit(2000, 'How long drain waits for closing connections (1012) before it cuts them, in ms.'),
|
|
16
18
|
closeTimeoutMs: o.alias('shutdownTimeoutMs'),
|
|
17
|
-
heartbeatMs: limit(10000, 'Interval of WebSocket pings, in ms.'),
|
|
19
|
+
heartbeatMs: limit(10000, 'Interval of WebSocket pings, in ms.', live),
|
|
18
20
|
idleTimeoutMs: o.integer({
|
|
21
|
+
reloadable: true,
|
|
19
22
|
minimum: 0,
|
|
20
23
|
maximum: LIMIT,
|
|
21
24
|
default: 0,
|
|
22
25
|
description: 'Close (4408 Idle) a connection that sent nothing for this long; 0 never. Clients send {"$dokebi":"ping-v1"} from their script to show the page still runs.',
|
|
23
26
|
}),
|
|
24
27
|
hubWaitMs: o.integer({
|
|
28
|
+
reloadable: true,
|
|
25
29
|
minimum: 0,
|
|
26
30
|
maximum: LIMIT,
|
|
27
31
|
default: 5000,
|
|
@@ -33,6 +37,25 @@ export const options = defineOptions({
|
|
|
33
37
|
default: 60000,
|
|
34
38
|
description: 'Sealed connections (route.seal, dokebi-app domains.<host>.seal): how far a frame timestamp may differ from the server clock before the frame is refused (4400). Needs the dokebi-seal plugin.',
|
|
35
39
|
}),
|
|
40
|
+
beforeUpgradeTimeoutMs: o.integer({
|
|
41
|
+
reloadable: true,
|
|
42
|
+
minimum: 100,
|
|
43
|
+
maximum: 600_000,
|
|
44
|
+
default: 5000,
|
|
45
|
+
description: 'The longest wait for the work that must finish before the 101 (the session save and auth cookies, D-0089); slower refuses the upgrade with 500 (D-0114).',
|
|
46
|
+
}),
|
|
47
|
+
hubFanOut: o.integer({
|
|
48
|
+
minimum: 1,
|
|
49
|
+
maximum: 1024,
|
|
50
|
+
default: 16,
|
|
51
|
+
description: 'Hub calls a tenantPrefix broadcast, kick or list runs at once, one per tenant (D-0114). Raise it for many tenants under one prefix; each call holds one hub request.',
|
|
52
|
+
}),
|
|
53
|
+
logRepeatWindowMs: o.integer({
|
|
54
|
+
minimum: 1000,
|
|
55
|
+
maximum: 3_600_000,
|
|
56
|
+
default: 10_000,
|
|
57
|
+
description: 'Window of the repeated connection failure logs in ms: the first is logged in full, the rest of the window are counted (repeated, intervalMs) (D-0114).',
|
|
58
|
+
}),
|
|
36
59
|
});
|
|
37
60
|
/** Parses `options.dokebi-websocket`; fails with core `INVALID_OPTIONS` (`details.issues`). */
|
|
38
61
|
export function parseOptions(input) {
|
package/dist/router.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export interface SocketContext {
|
|
|
24
24
|
export type SocketHandler = (data: unknown, socket: SocketContext) => Awaitable<unknown>;
|
|
25
25
|
export interface SocketDefinition {
|
|
26
26
|
readonly path: string;
|
|
27
|
+
/** `{ id }`: the route id (D-0140). See `WebsocketRoute.config`. */
|
|
28
|
+
readonly config?: WebsocketRoute['config'];
|
|
27
29
|
readonly origins?: WebsocketRoute['origins'];
|
|
28
30
|
readonly constraints?: WebsocketRoute['constraints'];
|
|
29
31
|
/** Client code version this route accepts; others are closed with 4426 (D-0033). */
|
package/dist/router.js
CHANGED
|
@@ -47,6 +47,8 @@ export function defineSocket(definition) {
|
|
|
47
47
|
if (!definition || typeof definition.on !== 'object' || definition.on === null)
|
|
48
48
|
throw new WebsocketError('INVALID_ROUTE', 'Invalid socket definition');
|
|
49
49
|
const presence = definition.presence;
|
|
50
|
+
/** The `presence: true` frame of each change (see below). */
|
|
51
|
+
const frames = new WeakMap();
|
|
50
52
|
const production = process.env.NODE_ENV === 'production';
|
|
51
53
|
if (presence !== undefined && typeof presence !== 'boolean' && typeof presence !== 'function')
|
|
52
54
|
throw new WebsocketError('INVALID_ROUTE', 'Invalid socket presence');
|
|
@@ -57,6 +59,7 @@ export function defineSocket(definition) {
|
|
|
57
59
|
}
|
|
58
60
|
return Object.freeze({
|
|
59
61
|
path: definition.path,
|
|
62
|
+
...(definition.config === undefined ? {} : { config: definition.config }),
|
|
60
63
|
...(definition.origins === undefined ? {} : { origins: definition.origins }),
|
|
61
64
|
...(definition.constraints === undefined ? {} : { constraints: definition.constraints }),
|
|
62
65
|
...(definition.version === undefined ? {} : { version: definition.version }),
|
|
@@ -67,13 +70,24 @@ export function defineSocket(definition) {
|
|
|
67
70
|
authorizeRoom: (identity, room) => definition.authorizeRoom(identity, room),
|
|
68
71
|
}
|
|
69
72
|
: {}),
|
|
70
|
-
...(presence
|
|
73
|
+
...(presence === true
|
|
71
74
|
? {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
// The gateway hands one frozen change to every socket of its tenant: one frame for all
|
|
76
|
+
// of them (D-0107 §3). Weak: a change is dropped once its last socket sent it.
|
|
77
|
+
presence: (change, session) => {
|
|
78
|
+
let text = frames.get(change);
|
|
79
|
+
if (text === undefined) {
|
|
80
|
+
text = frame({ type: 'presence', data: change });
|
|
81
|
+
frames.set(change, text);
|
|
82
|
+
}
|
|
83
|
+
return session.send(text);
|
|
84
|
+
},
|
|
75
85
|
}
|
|
76
|
-
:
|
|
86
|
+
: presence
|
|
87
|
+
? {
|
|
88
|
+
presence: (change, session) => presence(change, context(session)),
|
|
89
|
+
}
|
|
90
|
+
: {}),
|
|
77
91
|
async message(data, session) {
|
|
78
92
|
let message;
|
|
79
93
|
try {
|
package/dist/transport.js
CHANGED
|
@@ -36,6 +36,7 @@ export function websocketTransport(api, logger) {
|
|
|
36
36
|
if (logger.isEnabled('debug'))
|
|
37
37
|
logger.log('debug', 'WebSocket route mounted by the realtime point', {
|
|
38
38
|
path: scope.path,
|
|
39
|
+
routeId: typeof route.config?.id === 'string' ? route.config.id : null,
|
|
39
40
|
sealed: sealed !== undefined,
|
|
40
41
|
});
|
|
41
42
|
},
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import type { Awaitable } from '@dokebi/core';
|
|
|
2
2
|
import type { HubReceipt } from '@dokebi/websocket-hub';
|
|
3
3
|
import type { FastifyRequest } from 'fastify';
|
|
4
4
|
export interface WebsocketIdentity {
|
|
5
|
+
/** Optional renewable authorization (e.g. request.auth.live()). Local only, never sent to
|
|
6
|
+
* the hub. Invalid leases close with 4403 and cannot send, receive or join rooms. */
|
|
7
|
+
readonly authorization?: {
|
|
8
|
+
valid(): boolean;
|
|
9
|
+
subscribe(invalidated: () => void): () => void;
|
|
10
|
+
};
|
|
5
11
|
readonly tenant: string;
|
|
6
12
|
readonly member: string;
|
|
7
13
|
readonly clientId?: string;
|
|
@@ -69,8 +75,24 @@ export interface WebsocketSession {
|
|
|
69
75
|
*/
|
|
70
76
|
reportError?(error: unknown, details: WebsocketErrorDetails): void;
|
|
71
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* The route config of a WebSocket route (D-0140): only `id` for now. It becomes the Fastify
|
|
80
|
+
* config of the upgrade route, so `dokebi describe` lists it as `routes[].id`, per-route hooks of
|
|
81
|
+
* dokebi-web (`web.routeHook`, audit hooks) see it, and an upgrade request reads it as
|
|
82
|
+
* `request.routeOptions.config.id`.
|
|
83
|
+
*/
|
|
84
|
+
export interface WebsocketRouteConfig {
|
|
85
|
+
/**
|
|
86
|
+
* The route id of dokebi-web (D-0077 A), for example `'chat'` or `'API-12'`: 1 to 64 letters,
|
|
87
|
+
* digits, `.`, `_` or `-`, starting with a letter. Checked at start like a web route's
|
|
88
|
+
* (INVALID_ROUTE_CONFIG); the same id on two routes of one app fails it (DUPLICATE_ROUTE_ID).
|
|
89
|
+
*/
|
|
90
|
+
readonly id?: string;
|
|
91
|
+
}
|
|
72
92
|
export interface WebsocketRoute {
|
|
73
93
|
readonly path: string;
|
|
94
|
+
/** `{ id }` (D-0140); any other key is INVALID_ROUTE. */
|
|
95
|
+
readonly config?: WebsocketRouteConfig;
|
|
74
96
|
/**
|
|
75
97
|
* Browser origins allowed to open this route. By default an upgrade whose `Origin` host differs
|
|
76
98
|
* from the request `Host` is rejected with 403. A list adds exact origins such as
|
|
@@ -156,7 +178,12 @@ export interface WebsocketApi {
|
|
|
156
178
|
broadcast(filter: WebsocketFilter, data: string | Uint8Array): Promise<WebsocketReceipt>;
|
|
157
179
|
/** `broadcast` of the `{ type, data }` text frame `defineSocket` handlers send. */
|
|
158
180
|
send(filter: WebsocketFilter, type: string, data?: unknown): Promise<WebsocketReceipt>;
|
|
159
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Closes the matching connections on every server (hub kick; code 4000-4999, default 4403).
|
|
183
|
+
* OUTCOME_UNKNOWN: a server not connected to the hub leader (after a failover, before it
|
|
184
|
+
* reconnected) did not get it and its sockets may be open; the kick is not kept, so call again
|
|
185
|
+
* until it resolves when it must take effect.
|
|
186
|
+
*/
|
|
160
187
|
kick(filter: WebsocketFilter, code?: number, reason?: string): Promise<WebsocketKickReceipt>;
|
|
161
188
|
/**
|
|
162
189
|
* Calls `listener` with each tenant's joins and leaves (every server, as routes' `presence`
|
|
@@ -164,6 +191,9 @@ export interface WebsocketApi {
|
|
|
164
191
|
* logged at error (PRESENCE_LISTENER_FAILED); the others still run.
|
|
165
192
|
*/
|
|
166
193
|
onPresence(listener: (change: WebsocketPresence) => unknown): () => void;
|
|
194
|
+
/** Local observer of a tenant snapshot change, including rooms/metadata. Use it to invalidate
|
|
195
|
+
* shared read models; no per-client polling. Snapshots can coalesce intermediate states. */
|
|
196
|
+
onChange(listener: (tenant: string) => unknown): () => void;
|
|
167
197
|
}
|
|
168
198
|
/** The subprotocol a client offers when it can seal frames; a sealed connection selects it. */
|
|
169
199
|
export declare const SEAL_PROTOCOL = "dokebi.seal";
|
package/options.schema.json
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"minimum": 1,
|
|
16
16
|
"maximum": 67108864,
|
|
17
17
|
"deprecated": true,
|
|
18
|
+
"x-dokebi-alias-of": "maxPayloadBytes",
|
|
18
19
|
"description": "Deprecated name of maxPayloadBytes; use that key."
|
|
19
20
|
},
|
|
20
21
|
"maxConnections": {
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"minimum": 1,
|
|
23
24
|
"maximum": 67108864,
|
|
24
25
|
"default": 128,
|
|
26
|
+
"x-dokebi-reloadable": true,
|
|
25
27
|
"description": "Open connections this process accepts at most."
|
|
26
28
|
},
|
|
27
29
|
"maxPending": {
|
|
@@ -29,6 +31,7 @@
|
|
|
29
31
|
"minimum": 1,
|
|
30
32
|
"maximum": 67108864,
|
|
31
33
|
"default": 32,
|
|
34
|
+
"x-dokebi-reloadable": true,
|
|
32
35
|
"description": "Messages of one connection waiting for its handler at most; its presence calls are bounded by the same number, separately (later changes are merged)."
|
|
33
36
|
},
|
|
34
37
|
"maxPendingMessages": {
|
|
@@ -36,6 +39,7 @@
|
|
|
36
39
|
"minimum": 1,
|
|
37
40
|
"maximum": 67108864,
|
|
38
41
|
"deprecated": true,
|
|
42
|
+
"x-dokebi-alias-of": "maxPending",
|
|
39
43
|
"description": "Deprecated name of maxPending; use that key."
|
|
40
44
|
},
|
|
41
45
|
"maxBufferedBytes": {
|
|
@@ -43,6 +47,7 @@
|
|
|
43
47
|
"minimum": 1,
|
|
44
48
|
"maximum": 67108864,
|
|
45
49
|
"default": 1048576,
|
|
50
|
+
"x-dokebi-reloadable": true,
|
|
46
51
|
"description": "Bytes waiting to be sent to one connection at most; a slower client is closed (SLOW_CONSUMER)."
|
|
47
52
|
},
|
|
48
53
|
"shutdownTimeoutMs": {
|
|
@@ -57,6 +62,7 @@
|
|
|
57
62
|
"minimum": 1,
|
|
58
63
|
"maximum": 67108864,
|
|
59
64
|
"deprecated": true,
|
|
65
|
+
"x-dokebi-alias-of": "shutdownTimeoutMs",
|
|
60
66
|
"description": "Deprecated name of shutdownTimeoutMs; use that key."
|
|
61
67
|
},
|
|
62
68
|
"heartbeatMs": {
|
|
@@ -64,6 +70,7 @@
|
|
|
64
70
|
"minimum": 1,
|
|
65
71
|
"maximum": 67108864,
|
|
66
72
|
"default": 10000,
|
|
73
|
+
"x-dokebi-reloadable": true,
|
|
67
74
|
"description": "Interval of WebSocket pings, in ms."
|
|
68
75
|
},
|
|
69
76
|
"idleTimeoutMs": {
|
|
@@ -71,6 +78,7 @@
|
|
|
71
78
|
"minimum": 0,
|
|
72
79
|
"maximum": 67108864,
|
|
73
80
|
"default": 0,
|
|
81
|
+
"x-dokebi-reloadable": true,
|
|
74
82
|
"description": "Close (4408 Idle) a connection that sent nothing for this long; 0 never. Clients send {\"$dokebi\":\"ping-v1\"} from their script to show the page still runs."
|
|
75
83
|
},
|
|
76
84
|
"hubWaitMs": {
|
|
@@ -78,6 +86,7 @@
|
|
|
78
86
|
"minimum": 0,
|
|
79
87
|
"maximum": 67108864,
|
|
80
88
|
"default": 5000,
|
|
89
|
+
"x-dokebi-reloadable": true,
|
|
81
90
|
"description": "How long an upgrade waits for a reconnecting hub (leader change, rolling restart) before 503 HUB_RECOVERING; 0 refuses at once."
|
|
82
91
|
},
|
|
83
92
|
"sealDriftMs": {
|
|
@@ -86,6 +95,28 @@
|
|
|
86
95
|
"maximum": 600000,
|
|
87
96
|
"default": 60000,
|
|
88
97
|
"description": "Sealed connections (route.seal, dokebi-app domains.<host>.seal): how far a frame timestamp may differ from the server clock before the frame is refused (4400). Needs the dokebi-seal plugin."
|
|
98
|
+
},
|
|
99
|
+
"beforeUpgradeTimeoutMs": {
|
|
100
|
+
"type": "integer",
|
|
101
|
+
"minimum": 100,
|
|
102
|
+
"maximum": 600000,
|
|
103
|
+
"default": 5000,
|
|
104
|
+
"x-dokebi-reloadable": true,
|
|
105
|
+
"description": "The longest wait for the work that must finish before the 101 (the session save and auth cookies, D-0089); slower refuses the upgrade with 500 (D-0114)."
|
|
106
|
+
},
|
|
107
|
+
"hubFanOut": {
|
|
108
|
+
"type": "integer",
|
|
109
|
+
"minimum": 1,
|
|
110
|
+
"maximum": 1024,
|
|
111
|
+
"default": 16,
|
|
112
|
+
"description": "Hub calls a tenantPrefix broadcast, kick or list runs at once, one per tenant (D-0114). Raise it for many tenants under one prefix; each call holds one hub request."
|
|
113
|
+
},
|
|
114
|
+
"logRepeatWindowMs": {
|
|
115
|
+
"type": "integer",
|
|
116
|
+
"minimum": 1000,
|
|
117
|
+
"maximum": 3600000,
|
|
118
|
+
"default": 10000,
|
|
119
|
+
"description": "Window of the repeated connection failure logs in ms: the first is logged in full, the rest of the window are counted (repeated, intervalMs) (D-0114)."
|
|
89
120
|
}
|
|
90
121
|
}
|
|
91
122
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dokebi/websocket",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "WebSocket routes on @dokebi/web with rooms and broadcast across servers through @dokebi/websocket-hub.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dokebi",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
".": {
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./dependency": {
|
|
23
|
+
"types": "./dist/dependency.d.ts",
|
|
24
|
+
"import": "./dist/dependency.js"
|
|
21
25
|
}
|
|
22
26
|
},
|
|
23
27
|
"files": [
|
|
@@ -40,18 +44,18 @@
|
|
|
40
44
|
"ws": "8.22.0"
|
|
41
45
|
},
|
|
42
46
|
"peerDependencies": {
|
|
43
|
-
"@dokebi/core": "^0.4.
|
|
44
|
-
"@dokebi/web": "^0.4.
|
|
47
|
+
"@dokebi/core": "^0.4.2",
|
|
48
|
+
"@dokebi/web": "^0.4.3",
|
|
45
49
|
"@dokebi/websocket-hub": "^0.4.0"
|
|
46
50
|
},
|
|
47
51
|
"devDependencies": {
|
|
48
|
-
"@dokebi/web": "0.4.
|
|
49
|
-
"@dokebi/websocket-hub": "0.4.
|
|
52
|
+
"@dokebi/web": "0.4.7",
|
|
53
|
+
"@dokebi/websocket-hub": "0.4.3"
|
|
50
54
|
},
|
|
51
55
|
"dokebi": {
|
|
52
56
|
"schemaVersion": 2,
|
|
53
57
|
"id": "dokebi-websocket",
|
|
54
|
-
"core": "^0.4.
|
|
58
|
+
"core": "^0.4.2",
|
|
55
59
|
"dependencies": [
|
|
56
60
|
{
|
|
57
61
|
"name": "dokebi-websocket-hub",
|
|
@@ -59,7 +63,7 @@
|
|
|
59
63
|
},
|
|
60
64
|
{
|
|
61
65
|
"name": "dokebi-web",
|
|
62
|
-
"version": "^0.4.
|
|
66
|
+
"version": "^0.4.3"
|
|
63
67
|
},
|
|
64
68
|
{
|
|
65
69
|
"name": "dokebi-seal",
|