@hytopia.com/server-protocol 1.3.57 → 1.3.59
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 +5 -7
- package/schemas/index.ts +1 -0
package/package.json
CHANGED
package/schemas/Connection.ts
CHANGED
|
@@ -35,12 +35,11 @@ type WrtcTransportConnect = {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export type ConnectionSchema = {
|
|
38
|
-
c?: WrtcTransportConnect, // wrtc transport connect | client -> server |
|
|
39
|
-
ca?: WrtcConnectAck, // wrtc connect ack | server -> client |
|
|
40
|
-
d?: WrtcDataChannel[], // wrtc data channels | server <-> client |
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
t?: WrtcTransport[], // wrtc transports | server -> client | 2nd wrtc packet
|
|
38
|
+
c?: WrtcTransportConnect, // wrtc transport connect | client -> server | 2nd wrtc packet
|
|
39
|
+
ca?: WrtcConnectAck, // wrtc connect ack | server -> client | 3rd wrtc packet
|
|
40
|
+
d?: WrtcDataChannel[], // wrtc data channels | server <-> client | 1st wrtc packet s->c, 4th wrtc packet c->s
|
|
41
|
+
pa?: WrtcProduceDataAck, // wrtc produce data ack | server -> client | 5th wrtc packet
|
|
42
|
+
t?: WrtcTransport[], // wrtc transports | server -> client | 1st wrtc packet
|
|
44
43
|
};
|
|
45
44
|
|
|
46
45
|
/**
|
|
@@ -178,7 +177,6 @@ export const connectionSchema: JSONSchemaType<ConnectionSchema> = {
|
|
|
178
177
|
c: { ...wrtcTransportConnectSchema, nullable: true },
|
|
179
178
|
ca: { ...wrtcConnectAckSchema, nullable: true },
|
|
180
179
|
d: { type: 'array', items: { ...wrtcDataChannelSchema }, nullable: true },
|
|
181
|
-
p: { type: 'string', enum: [ 'wss', 'wrtc' ], nullable: true },
|
|
182
180
|
pa: { ...wrtcProduceDataAckSchema, nullable: true },
|
|
183
181
|
t: { type: 'array', items: { ...wrtcTransportSchema }, nullable: true },
|
|
184
182
|
},
|
package/schemas/index.ts
CHANGED