@hytopia.com/server-protocol 1.3.68 → 1.3.69
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
|
@@ -36,6 +36,7 @@ type WrtcTransportConnect = {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type ConnectionSchema = {
|
|
39
|
+
i?: string; // connection id | server -> client | on initial WS connection
|
|
39
40
|
c?: WrtcTransportConnect, // wrtc transport connect | client -> server | 2nd wrtc packet
|
|
40
41
|
ca?: WrtcConnectAck, // wrtc connect ack | server -> client | 3rd wrtc packet
|
|
41
42
|
d?: WrtcDataChannel[], // wrtc data channels | server <-> client | 1st wrtc packet s->c, 4th wrtc packet c->s
|
|
@@ -176,6 +177,7 @@ const wrtcDataChannelSchema: JSONSchemaType<WrtcDataChannel> = {
|
|
|
176
177
|
export const connectionSchema: JSONSchemaType<ConnectionSchema> = {
|
|
177
178
|
type: 'object',
|
|
178
179
|
properties: {
|
|
180
|
+
i: { type: 'string', nullable: true },
|
|
179
181
|
c: { ...wrtcTransportConnectSchema, nullable: true },
|
|
180
182
|
ca: { ...wrtcConnectAckSchema, nullable: true },
|
|
181
183
|
d: { type: 'array', items: { ...wrtcDataChannelSchema }, nullable: true },
|