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)