@hytopia.com/server-protocol 1.3.61 → 1.3.63

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.61",
3
+ "version": "1.3.63",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -18,6 +18,7 @@ type WrtcDataChannel = {
18
18
 
19
19
  type WrtcProduceDataAck = {
20
20
  i: string; // producer id
21
+ l: string; // label, used for client reference of ack
21
22
  }
22
23
 
23
24
  type WrtcTransport = {
@@ -106,8 +107,9 @@ const wrtcProduceDataAckSchema: JSONSchemaType<WrtcProduceDataAck> = {
106
107
  type: 'object',
107
108
  properties: {
108
109
  i: { type: 'string' },
110
+ l: { type: 'string' },
109
111
  },
110
- required: [ 'i' ],
112
+ required: [ 'i', 'l' ],
111
113
  additionalProperties: false,
112
114
  };
113
115
 
@@ -163,11 +165,11 @@ const wrtcDataChannelSchema: JSONSchemaType<WrtcDataChannel> = {
163
165
  type: 'object',
164
166
  properties: {
165
167
  i: { type: 'string', nullable: true },
166
- pi: { type: 'string' },
168
+ pi: { type: 'string', nullable: true },
167
169
  l: { type: 'string' },
168
170
  s: wrtcSctpStreamParametersSchema,
169
171
  },
170
- required: [ 'pi', 'l', 's' ],
172
+ required: [ 'l', 's' ],
171
173
  additionalProperties: false,
172
174
  };
173
175