Update socket_io_provider.ts

This commit is contained in:
nguyentrungthat 2025-11-24 10:33:12 +07:00
parent 002709e8e3
commit 89498d43d6
1 changed files with 8 additions and 0 deletions

View File

@ -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)