diff --git a/src/client.ts b/src/client.ts index 5fe30fe..6f29c9a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -117,7 +117,9 @@ class VKPLMessageClient extends EventEmitter< this.api = new VkplApi(this.messageParser, this.auth); this.api.on("refreshed", (token) => this.onRefreshToken(token)); this.channelNames = config.channels; - this.wsServerUrl = config.wsServer ?? this.wsServerUrl; + this.wsServerUrl = config.wsServer + ? `${config.wsServer}?cf_protocol_version=v2` + : this.wsServerUrl; this.centrifugeClient = new CentrifugeClient( this.wsServerUrl, this.api,