Fix resetting

This commit is contained in:
Andras Schmelczer 2025-11-23 16:41:42 +00:00
parent 99d90d2e0c
commit cf68ff0ec1
11 changed files with 161 additions and 56 deletions

View file

@ -21,13 +21,13 @@ export class WebSocketManager {
cursors: ClientCursors[]
) => Promise<void>)[] = [];
private webSocket: WebSocket | undefined;
private isStopped = true;
private resolveDisconnectingPromise: null | (() => unknown) = null;
private reconnectTimeoutId: ReturnType<typeof setTimeout> | undefined;
private readonly outstandingPromises: Promise<unknown>[] = [];
private webSocket: WebSocket | undefined;
private readonly webSocketFactoryImplementation: typeof globalThis.WebSocket;
public constructor(