@hytopia.com/server-protocol 1.3.60 → 1.3.62
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 +4 -4
package/package.json
CHANGED
package/schemas/Connection.ts
CHANGED
|
@@ -10,8 +10,8 @@ type WrtcConnectAck = {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
type WrtcDataChannel = {
|
|
13
|
-
i?: string; // data channel id
|
|
14
|
-
pi
|
|
13
|
+
i?: string; // data channel id (server -> client channel only)
|
|
14
|
+
pi?: string; // data producer id (server -> client channel only)
|
|
15
15
|
l: string; // label
|
|
16
16
|
s: mediasoup.types.SctpStreamParameters; // sctp stream parameters
|
|
17
17
|
}
|
|
@@ -163,11 +163,11 @@ const wrtcDataChannelSchema: JSONSchemaType<WrtcDataChannel> = {
|
|
|
163
163
|
type: 'object',
|
|
164
164
|
properties: {
|
|
165
165
|
i: { type: 'string', nullable: true },
|
|
166
|
-
pi: { type: 'string' },
|
|
166
|
+
pi: { type: 'string', nullable: true },
|
|
167
167
|
l: { type: 'string' },
|
|
168
168
|
s: wrtcSctpStreamParametersSchema,
|
|
169
169
|
},
|
|
170
|
-
required: [ '
|
|
170
|
+
required: [ 'l', 's' ],
|
|
171
171
|
additionalProperties: false,
|
|
172
172
|
};
|
|
173
173
|
|