()
| 29 | } |
| 30 | |
| 31 | public alive(): boolean { |
| 32 | const now = Date.now() |
| 33 | return now - this.lastHeartbeat < this.heartbeatInterval |
| 34 | } |
| 35 | /** |
| 36 | * Write to the heartbeat file if we haven't already done so within the |
| 37 | * timeout and start or reset a timer that keeps running as long as there is |
no outgoing calls
no test coverage detected