Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenHands/OpenHands
/ once
Function
once
scripts/proxy-utils.mjs:38–45 ·
view source on GitHub ↗
(fn)
Source
from the content-addressed store, hash-verified
36
}
37
38
function
once(fn) {
39
let
called = false;
40
return
(...args) => {
41
if
(called)
return
;
42
called = true;
43
fn(...args);
44
};
45
}
46
47
function
writeProxyError(res, message) {
48
if
(res.destroyed)
return
;
Callers
7
proxyHttp
Function · 0.85
proxyWebSocket
Function · 0.85
dev-safe.test.ts
File · 0.85
dev-with-automation.test.ts
File · 0.85
stopChild
Function · 0.85
ingress.test.ts
File · 0.85
agent-canvas.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
1
stopChild
Function · 0.68