@hytopia.com/server-protocol 1.3.59 → 1.3.61

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.59",
3
+ "version": "1.3.61",
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
  }
@@ -120,7 +120,7 @@ const wrtcSctpParametersSchema: JSONSchemaType<mediasoup.types.SctpParameters> =
120
120
  maxMessageSize: { type: 'number' },
121
121
  },
122
122
  required: [ 'port', 'OS', 'MIS', 'maxMessageSize' ],
123
- additionalProperties: false,
123
+ additionalProperties: true, // May be an SCTPParametersDump
124
124
  };
125
125
 
126
126
  const wrtcSctpStreamParametersSchema: JSONSchemaType<mediasoup.types.SctpStreamParameters> = {