@hytopia.com/server-protocol 1.4.7 → 1.4.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/package.json +1 -1
- package/schemas/Connection.ts +2 -0
package/package.json
CHANGED
package/schemas/Connection.ts
CHANGED
|
@@ -37,6 +37,7 @@ type WrtcTransportConnect = {
|
|
|
37
37
|
|
|
38
38
|
export type ConnectionSchema = {
|
|
39
39
|
i?: string; // connection id | server -> client | on initial WS connection
|
|
40
|
+
k?: boolean // kill connection | server -> client | tells client to close connection & not reconnect
|
|
40
41
|
c?: WrtcTransportConnect, // wrtc transport connect | client -> server | 2nd wrtc packet
|
|
41
42
|
ca?: WrtcConnectAck, // wrtc connect ack | server -> client | 3rd wrtc packet
|
|
42
43
|
d?: WrtcDataChannel[], // wrtc data channels | server <-> client | 1st wrtc packet s->c, 4th wrtc packet c->s
|
|
@@ -178,6 +179,7 @@ export const connectionSchema: JSONSchemaType<ConnectionSchema> = {
|
|
|
178
179
|
type: 'object',
|
|
179
180
|
properties: {
|
|
180
181
|
i: { type: 'string', nullable: true },
|
|
182
|
+
k: { type: 'boolean', nullable: true },
|
|
181
183
|
c: { ...wrtcTransportConnectSchema, nullable: true },
|
|
182
184
|
ca: { ...wrtcConnectAckSchema, nullable: true },
|
|
183
185
|
d: { type: 'array', items: { ...wrtcDataChannelSchema }, nullable: true },
|