@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.3.60",
3
+ "version": "1.3.62",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -10,8 +10,8 @@ type WrtcConnectAck = {
10
10
  }
11
11
 
12
12
  type WrtcDataChannel = {
13
- i?: string; // data channel id
14
- pi: string; // data producer id
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: [ 'pi', 'l', 's' ],
170
+ required: [ 'l', 's' ],
171
171
  additionalProperties: false,
172
172
  };
173
173