Skip to content

Commit 2d99afd

Browse files
authored
support reverb broadcaster (#391)
1 parent 23c9a23 commit 2d99afd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/echo.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ export default class Echo {
3838
* Create a new connection.
3939
*/
4040
connect(): void {
41-
if (this.options.broadcaster == 'pusher') {
41+
if (this.options.broadcaster == 'reverb') {
42+
this.connector = new PusherConnector({ ...this.options, cluster: '' });
43+
} else if (this.options.broadcaster == 'pusher') {
4244
this.connector = new PusherConnector(this.options);
4345
} else if (this.options.broadcaster == 'socket.io') {
4446
this.connector = new SocketIoConnector(this.options);

0 commit comments

Comments
 (0)