Skip to content

Commit 39b3ba7

Browse files
chhornponleuponleutaylorotwell
authored
instantiate pusher using Pusher class from option (#359)
* instantiate pusher using Pusher class from option. * Update pusher-connector.ts Co-authored-by: ponleu <ponleu@go24.sg> Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 088a232 commit 39b3ba7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/connector/pusher-connector.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export class PusherConnector extends Connector {
2727
connect(): void {
2828
if (typeof this.options.client !== 'undefined') {
2929
this.pusher = this.options.client;
30+
} else if (this.options.Pusher) {
31+
this.pusher = new this.options.Pusher(this.options.key, this.options);
3032
} else {
3133
this.pusher = new Pusher(this.options.key, this.options);
3234
}

0 commit comments

Comments
 (0)