We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 563d3d7 + 867cd79 commit adebdf7Copy full SHA for adebdf7
src/client.js
@@ -224,8 +224,7 @@ export class SfuClient extends EventTarget {
224
* @param {boolean} [param0.needRefresh] true if the server should refresh the local info from all sessions of this channel
225
*/
226
updateInfo(info, { needRefresh } = {}) {
227
- this._info = info;
228
- this._bus.send(
+ this._bus?.send(
229
{
230
name: CLIENT_MESSAGE.INFO_CHANGE,
231
payload: { info, needRefresh },
@@ -266,7 +265,7 @@ export class SfuClient extends EventTarget {
266
265
if (!hasChanged) {
267
return;
268
}
269
270
271
name: CLIENT_MESSAGE.CONSUMPTION_CHANGE,
272
payload: { sessionId, states },
0 commit comments