mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-21 06:54:26 +01:00
working basic loading glbs demo after lots of fixes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {settings} from "./settings";
|
||||
|
||||
export class NetworkUpdateEvent extends Event {
|
||||
name: string;
|
||||
url: string;
|
||||
@@ -48,7 +50,7 @@ export class NetworkManager extends EventTarget {
|
||||
}
|
||||
ws.onclose = () => {
|
||||
console.trace("WebSocket closed, reconnecting very soon");
|
||||
setTimeout(() => this.monitorWebSocket(url), 500);
|
||||
setTimeout(() => this.monitorWebSocket(url), settings.checkServerEveryMs);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user