chore(): update safeTerminateWs

This commit is contained in:
tiagosiebler
2025-03-04 11:22:16 +00:00
parent e65d7f0e07
commit 78e4025fe5
2 changed files with 19 additions and 7 deletions

View File

@@ -509,7 +509,7 @@ export abstract class BaseWebsocketClient<
const ws = this.getWs(wsKey);
ws?.close();
if (force) {
safeTerminateWs(ws);
safeTerminateWs(ws, false);
}
}
@@ -726,7 +726,7 @@ export abstract class BaseWebsocketClient<
if (ws) {
ws.close();
safeTerminateWs(ws);
safeTerminateWs(ws, false);
}
if (!wasOpen) {