From 6cb1364054dd9db0749cdbff5f93faa3299b611b Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Fri, 21 Apr 2023 15:36:18 +0100 Subject: [PATCH] fix: use ws url from configuration if available --- package.json | 2 +- src/Client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 62939e62..6922a722 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revolt.js", - "version": "7.0.0-beta.1", + "version": "7.0.0-beta.2", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "types": "src/index.ts", diff --git a/src/Client.ts b/src/Client.ts index b6f6d6c1..fefd9d15 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -259,7 +259,7 @@ export class Client extends EventEmitter { this.events.disconnect(); this.#setReady(false); this.events.connect( - "wss://ws.revolt.chat", + this.configuration?.ws ?? "wss://ws.revolt.chat", typeof this.#session === "string" ? this.#session : this.#session!.token ); }