iosignal 8.1.0 → 9.0.0
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/README.ko.md +48 -0
- package/README.md +55 -0
- package/dist/browser/esm/io.d.ts +6 -8
- package/dist/browser/esm/io.js +5 -5
- package/dist/browser/esm/io.js.map +1 -1
- package/dist/browser/iife/io.js +5 -5
- package/dist/browser/iife/io.js.map +1 -1
- package/dist/node/iosignal.cjs +940 -517
- package/dist/node/iosignal.d.cts +293 -118
- package/dist/node/iosignal.d.ts +293 -118
- package/dist/node/iosignal.js +938 -519
- package/dist/types/client/IOCore.d.ts +6 -9
- package/dist/types/common/constants.d.ts +2 -2
- package/package.json +2 -3
- package/dist/types/common/quotaTable.d.ts +0 -47
|
@@ -121,15 +121,13 @@ export class IOCore extends EventEmitter<string | symbol, any> {
|
|
|
121
121
|
*/
|
|
122
122
|
mid: number;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
125
|
-
*
|
|
124
|
+
* This connection's quota as told by the server (QUOTA). maxMessageBytes: largest message
|
|
125
|
+
* send() passes on; null: no limit (also until the server tells).
|
|
126
|
+
* @type {{ maxMessageBytes: number | null }}
|
|
126
127
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
* @type {object}
|
|
131
|
-
*/
|
|
132
|
-
quota: object;
|
|
128
|
+
quota: {
|
|
129
|
+
maxMessageBytes: number | null;
|
|
130
|
+
};
|
|
133
131
|
/**
|
|
134
132
|
* Server settings.
|
|
135
133
|
* @type {object}
|
|
@@ -434,7 +432,6 @@ export type PAYLOAD_TYPE = import("../common/constants.js").PAYLOAD_TYPE;
|
|
|
434
432
|
export type SIZE_LIMIT = import("../common/constants.js").SIZE_LIMIT;
|
|
435
433
|
export type ENC_MODE = import("../common/constants.js").ENC_MODE;
|
|
436
434
|
export type STATE = import("../common/constants.js").STATE;
|
|
437
|
-
export type quotaTable = any;
|
|
438
435
|
export type Buffer = import("boho").Buffer;
|
|
439
436
|
import { EventEmitter } from "eventemitter3";
|
|
440
437
|
import Boho from "boho";
|
|
@@ -78,7 +78,7 @@ export type IOMsg = {
|
|
|
78
78
|
SERVER_READY: number;
|
|
79
79
|
CID_REQ: number;
|
|
80
80
|
CID_RES: number;
|
|
81
|
-
|
|
81
|
+
QUOTA: number;
|
|
82
82
|
AUTH_CLEAR: number;
|
|
83
83
|
SERVER_REDIRECT: number;
|
|
84
84
|
LOOP: number;
|
|
@@ -114,10 +114,10 @@ export namespace IOMsg {
|
|
|
114
114
|
export { CID_REQ_1 as CID_REQ };
|
|
115
115
|
let CID_RES_1: number;
|
|
116
116
|
export { CID_RES_1 as CID_RES };
|
|
117
|
-
export let QUOTA_LEVEL: number;
|
|
118
117
|
let AUTH_CLEAR_1: number;
|
|
119
118
|
export { AUTH_CLEAR_1 as AUTH_CLEAR };
|
|
120
119
|
export let SERVER_REDIRECT: number;
|
|
120
|
+
export let QUOTA: number;
|
|
121
121
|
export let LOOP: number;
|
|
122
122
|
export let ECHO: number;
|
|
123
123
|
export let PING: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iosignal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "iosignal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
"dist/types/client/IOCore.d.ts",
|
|
93
93
|
"dist/types/client/browser/IOWebSocket.d.ts",
|
|
94
94
|
"dist/types/common/constants.d.ts",
|
|
95
|
-
"dist/types/common/payload.d.ts"
|
|
96
|
-
"dist/types/common/quotaTable.d.ts"
|
|
95
|
+
"dist/types/common/payload.d.ts"
|
|
97
96
|
]
|
|
98
97
|
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export let quotaTable: {
|
|
2
|
-
0: {
|
|
3
|
-
signalSize: number;
|
|
4
|
-
publishCounter: number;
|
|
5
|
-
trafficRate: number;
|
|
6
|
-
};
|
|
7
|
-
1: {
|
|
8
|
-
signalSize: number;
|
|
9
|
-
publishCounter: number;
|
|
10
|
-
trafficRate: number;
|
|
11
|
-
};
|
|
12
|
-
2: {
|
|
13
|
-
signalSize: number;
|
|
14
|
-
publishCounter: number;
|
|
15
|
-
trafficRate: number;
|
|
16
|
-
};
|
|
17
|
-
3: {
|
|
18
|
-
signalSize: number;
|
|
19
|
-
publishCounter: number;
|
|
20
|
-
trafficRate: number;
|
|
21
|
-
};
|
|
22
|
-
10: {
|
|
23
|
-
signalSize: number;
|
|
24
|
-
publishCounter: number;
|
|
25
|
-
trafficRate: number;
|
|
26
|
-
};
|
|
27
|
-
11: {
|
|
28
|
-
signalSize: number;
|
|
29
|
-
publishCounter: number;
|
|
30
|
-
trafficRate: number;
|
|
31
|
-
};
|
|
32
|
-
12: {
|
|
33
|
-
signalSize: number;
|
|
34
|
-
publishCounter: number;
|
|
35
|
-
trafficRate: number;
|
|
36
|
-
};
|
|
37
|
-
200: {
|
|
38
|
-
signalSize: number;
|
|
39
|
-
publishCounter: number;
|
|
40
|
-
trafficRate: number;
|
|
41
|
-
};
|
|
42
|
-
255: {
|
|
43
|
-
signalSize: number;
|
|
44
|
-
publishCounter: number;
|
|
45
|
-
trafficRate: number;
|
|
46
|
-
};
|
|
47
|
-
};
|