mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 20:16:06 -04:00
fix: use ws url from configuration if available
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
+1
-1
@@ -259,7 +259,7 @@ export class Client extends EventEmitter<Events> {
|
||||
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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user