fix: format constructor URL assignment for clarity
This commit is contained in:
@@ -20,7 +20,8 @@ export class NetworkClient {
|
|||||||
private reconnecting = false;
|
private reconnecting = false;
|
||||||
|
|
||||||
constructor(url?: string) {
|
constructor(url?: string) {
|
||||||
this.url = url || import.meta.env.VITE_WS_URL || "ws://localhost:3001";
|
this.url =
|
||||||
|
url || (import.meta as any).env.VITE_WS_URL || "ws://localhost:3001";
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(): Promise<void> {
|
connect(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user