Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tiann/hapi
/ onConnect
Method
onConnect
cli/src/api/apiSession.ts:698–703 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
696
}
697
698
const
onConnect = () => {
699
if
(settled)
return
700
settled = true
701
cleanup()
702
resolve(true)
703
}
704
705
const
timeout = setTimeout(() => {
706
if
(settled)
return
Callers
nothing calls this directly
Calls
1
cleanup
Function · 0.50
Tested by
no test coverage detected