diff --git a/src/connector/pusher-connector.ts b/src/connector/pusher-connector.ts index a01db947..c50707db 100644 --- a/src/connector/pusher-connector.ts +++ b/src/connector/pusher-connector.ts @@ -27,6 +27,8 @@ export class PusherConnector extends Connector { connect(): void { if (typeof this.options.client !== 'undefined') { this.pusher = this.options.client; + } else if (this.options.Pusher) { + this.pusher = new this.options.Pusher(this.options.key, this.options); } else { this.pusher = new Pusher(this.options.key, this.options); }