Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/coder/code-server
/ setState
Method
setState
src/node/heart.ts:24–29 ·
view source on GitHub ↗
(state: typeof this.state)
Source
from the content-addressed store, hash-verified
22
}
23
24
private setState(state: typeof this.state) {
25
if
(this.state !== state) {
26
this.state = state
27
this._onChange.emit(this.state)
28
}
29
}
30
31
public alive(): boolean {
32
const
now = Date.now()
Callers
1
beat
Method · 0.95
Calls
1
emit
Method · 0.80
Tested by
no test coverage detected