()
| 487 | } |
| 488 | |
| 489 | private startKeepAlive(): void { |
| 490 | this.stopKeepAlive() |
| 491 | this.keepAliveInterval = setInterval(() => { |
| 492 | this.socket.emit('machine-alive', { |
| 493 | machineId: this.machine.id, |
| 494 | time: Date.now() |
| 495 | }) |
| 496 | }, 20_000) |
| 497 | } |
| 498 | |
| 499 | private stopKeepAlive(): void { |
| 500 | if (this.keepAliveInterval) { |
no test coverage detected