Lint
This commit is contained in:
parent
7c991c3b4d
commit
e3a90833ff
10 changed files with 92 additions and 98 deletions
|
|
@ -40,7 +40,7 @@ export class WebSocketManager {
|
|||
private readonly logger: Logger,
|
||||
private readonly settings: Settings,
|
||||
private readonly webSocketFactoryImplementation: typeof globalThis.WebSocket = WebSocket
|
||||
) { }
|
||||
) {}
|
||||
|
||||
public get isWebSocketConnected(): boolean {
|
||||
return (
|
||||
|
|
@ -260,10 +260,9 @@ export class WebSocketManager {
|
|||
this.resolveDisconnectingPromise?.();
|
||||
this.resolveDisconnectingPromise = null;
|
||||
} else {
|
||||
const delay = this.settings.getSettings().webSocketRetryIntervalMs;
|
||||
this.logger.info(
|
||||
`Reconnecting to WebSocket in ${delay}ms...`
|
||||
);
|
||||
const delay =
|
||||
this.settings.getSettings().webSocketRetryIntervalMs;
|
||||
this.logger.info(`Reconnecting to WebSocket in ${delay}ms...`);
|
||||
this.reconnectTimeoutId = setTimeout(() => {
|
||||
this.reconnectTimeoutId = undefined;
|
||||
this.initializeWebSocket();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue