Skip to content

Commit

Permalink
support reverb broadcaster (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon authored Feb 14, 2024
1 parent 23c9a23 commit 2d99afd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export default class Echo {
* Create a new connection.
*/
connect(): void {
if (this.options.broadcaster == 'pusher') {
if (this.options.broadcaster == 'reverb') {
this.connector = new PusherConnector({ ...this.options, cluster: '' });
} else if (this.options.broadcaster == 'pusher') {
this.connector = new PusherConnector(this.options);
} else if (this.options.broadcaster == 'socket.io') {
this.connector = new SocketIoConnector(this.options);
Expand Down

0 comments on commit 2d99afd

Please sign in to comment.