Fix resetting
This commit is contained in:
parent
99d90d2e0c
commit
cf68ff0ec1
11 changed files with 161 additions and 56 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue