@hytopia.com/server-protocol 1.3.55 → 1.3.56

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.55",
3
+ "version": "1.3.56",
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
- di: string; // data producer id
13
+ i?: string; // data channel id
14
+ pi: string; // data producer id
15
15
  l: string; // label
16
16
  s: mediasoup.types.SctpStreamParameters; // sctp stream parameters
17
17
  }
@@ -164,11 +164,11 @@ const wrtcDataChannelSchema: JSONSchemaType<WrtcDataChannel> = {
164
164
  type: 'object',
165
165
  properties: {
166
166
  i: { type: 'string', nullable: true },
167
- di: { type: 'string' },
167
+ pi: { type: 'string' },
168
168
  l: { type: 'string' },
169
169
  s: wrtcSctpStreamParametersSchema,
170
170
  },
171
- required: [ 'di', 'l', 's' ],
171
+ required: [ 'pi', 'l', 's' ],
172
172
  additionalProperties: false,
173
173
  };
174
174