Skip to content

Commit

Permalink
fix(RTC) improve bridge channel not being available error (#2533)
Browse files Browse the repository at this point in the history
Claiming there is no support for it is misleading, the user might have
called the function before the channel was initialized.
  • Loading branch information
saghul authored May 31, 2024
1 parent 89877d2 commit 279837d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/RTC/RTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ export default class RTC extends Listenable {
if (this._channel) {
this._channel.sendMessage(to, payload);
} else {
throw new Error('Channel support is disabled!');
throw new Error('BridgeChannel has not been initialized yet');
}
}

Expand Down

0 comments on commit 279837d

Please sign in to comment.