@hytopia.com/server-protocol 1.4.22-webtransport → 1.4.22-webtransport-2
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/package.json +1 -1
- package/schemas/Connection.ts +2 -10
package/package.json
CHANGED
package/schemas/Connection.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import { JSONSchemaType } from 'ajv';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Types
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
3
|
export type ConnectionSchema = {
|
|
8
|
-
i?: string;
|
|
9
|
-
k?: boolean
|
|
4
|
+
i?: string; // connection id | server -> client | on initial WS connection
|
|
5
|
+
k?: boolean; // kill connection | server -> client | tells client to close connection & not reconnect
|
|
10
6
|
};
|
|
11
7
|
|
|
12
|
-
/**
|
|
13
|
-
* Schemas
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
8
|
export const connectionSchema: JSONSchemaType<ConnectionSchema> = {
|
|
17
9
|
type: 'object',
|
|
18
10
|
properties: {
|