@couch-kit/host 1.7.7 → 1.7.9
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/lib/websocket.d.ts +16 -3
- package/lib/websocket.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/websocket.ts +20 -6
package/lib/websocket.d.ts
CHANGED
|
@@ -8,11 +8,24 @@ import { EventEmitter } from "./event-emitter";
|
|
|
8
8
|
export interface WebSocketConfig {
|
|
9
9
|
port: number;
|
|
10
10
|
debug?: boolean;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated No effect. The underlying nitro-http WebSocket transport
|
|
13
|
+
* manages frame sizing internally and this value is never read. This field
|
|
14
|
+
* will be removed in a future major release. Do not set it.
|
|
15
|
+
*/
|
|
12
16
|
maxFrameSize?: number;
|
|
13
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated No effect. The nitro-http WebSocket transport does not expose
|
|
19
|
+
* server-side keepalive ping configuration, so this value is never read.
|
|
20
|
+
* Application-level heartbeats are handled by the host PING/PONG protocol.
|
|
21
|
+
* This field will be removed in a future major release. Do not set it.
|
|
22
|
+
*/
|
|
14
23
|
keepaliveInterval?: number;
|
|
15
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated No effect. The nitro-http WebSocket transport does not expose
|
|
26
|
+
* keepalive pong-timeout configuration, so this value is never read. This
|
|
27
|
+
* field will be removed in a future major release. Do not set it.
|
|
28
|
+
*/
|
|
16
29
|
keepaliveTimeout?: number;
|
|
17
30
|
}
|
|
18
31
|
/** Event map for type-safe event emission. */
|
package/lib/websocket.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../src/websocket.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,WAAW,eAAe;IAC9B,I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AAE,MAAM;IAoBlD,yDAAyD;IACzD,IAAW,WAAW,IAAI,MAAM,CAE/B;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@couch-kit/host",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"prepublishOnly": "bun run build"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@couch-kit/core": "0.9.
|
|
61
|
+
"@couch-kit/core": "0.9.1",
|
|
62
62
|
"buffer": "^6.0.3",
|
|
63
63
|
"js-sha1": "^0.7.0",
|
|
64
64
|
"react-native-nitro-http-server": "^1.6.1"
|
package/src/websocket.ts
CHANGED
|
@@ -16,11 +16,24 @@ import { generateId, DEFAULT_WS_PATH } from "@couch-kit/core";
|
|
|
16
16
|
export interface WebSocketConfig {
|
|
17
17
|
port: number;
|
|
18
18
|
debug?: boolean;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated No effect. The underlying nitro-http WebSocket transport
|
|
21
|
+
* manages frame sizing internally and this value is never read. This field
|
|
22
|
+
* will be removed in a future major release. Do not set it.
|
|
23
|
+
*/
|
|
20
24
|
maxFrameSize?: number;
|
|
21
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated No effect. The nitro-http WebSocket transport does not expose
|
|
27
|
+
* server-side keepalive ping configuration, so this value is never read.
|
|
28
|
+
* Application-level heartbeats are handled by the host PING/PONG protocol.
|
|
29
|
+
* This field will be removed in a future major release. Do not set it.
|
|
30
|
+
*/
|
|
22
31
|
keepaliveInterval?: number;
|
|
23
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated No effect. The nitro-http WebSocket transport does not expose
|
|
34
|
+
* keepalive pong-timeout configuration, so this value is never read. This
|
|
35
|
+
* field will be removed in a future major release. Do not set it.
|
|
36
|
+
*/
|
|
24
37
|
keepaliveTimeout?: number;
|
|
25
38
|
}
|
|
26
39
|
|
|
@@ -48,9 +61,10 @@ export class GameWebSocketServer extends EventEmitter<WebSocketServerEvents> {
|
|
|
48
61
|
super();
|
|
49
62
|
this.port = config.port;
|
|
50
63
|
this.debug = !!config.debug;
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
64
|
+
// Only `port` and `debug` are honored. `maxFrameSize`, `keepaliveInterval`,
|
|
65
|
+
// and `keepaliveTimeout` are deprecated no-ops: the nitro-http WebSocket
|
|
66
|
+
// transport does not expose these knobs, so they are intentionally ignored
|
|
67
|
+
// (see the @deprecated tags on WebSocketConfig).
|
|
54
68
|
}
|
|
55
69
|
|
|
56
70
|
private log(...args: unknown[]) {
|