Skip to content

Commit fa586b0

Browse files
[IMP] add sequence to the valid SessionInfo keys
Sequence is a new property of RTCSessions[1] which is used to determine the order of connections to avoid race conditions in "multi-network" (SFU/P2P hybrid) cases. [1]: odoo/odoo#205198
1 parent 3184fb1 commit fa586b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/session.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
* @property {boolean} isSelfMuted
1818
* @property {boolean} isDeaf
1919
* @property {boolean} isRaisingHand
20+
* @property {number} sequence
2021
*/
2122

2223
/**
@@ -80,6 +81,7 @@ export class Session extends EventEmitter {
8081
isDeaf: undefined,
8182
isCameraOn: undefined,
8283
isScreenSharingOn: undefined,
84+
sequence: undefined,
8385
});
8486
/** @type {string} */
8587
remote;

0 commit comments

Comments
 (0)