From 89498d43d617c263d8c9af9290160e40e2e16914 Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Mon, 24 Nov 2025 10:33:12 +0700 Subject: [PATCH] Update socket_io_provider.ts --- BACKEND/providers/socket_io_provider.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BACKEND/providers/socket_io_provider.ts b/BACKEND/providers/socket_io_provider.ts index e8965b3..b40fd13 100644 --- a/BACKEND/providers/socket_io_provider.ts +++ b/BACKEND/providers/socket_io_provider.ts @@ -197,6 +197,14 @@ export class WebSocketIo { userOpenCLI: userName, }) } + if (line.config?.status !== 'connected') + await this.handleLineOperation( + io, + stationId, + [lineId], + async (lineCon) => lineCon.writeCommand('\r\n', userName), + { command: '\r\n', timeout: 120000 } + ) } else { if (this.lineConnecting.includes(lineId)) return const linesData = await Line.findBy('id', lineId)