MCPcopy Create free account
hub / github.com/tiann/hapi / startKeepAlive

Method startKeepAlive

cli/src/api/apiMachine.ts:489–497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

connectMethod · 0.95

Calls 2

stopKeepAliveMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected