MCPcopy Index your code
hub / github.com/coder/code-server / alive

Method alive

src/node/heart.ts:31–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

beatMethod · 0.95
heart.test.tsFile · 0.80
health.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected