MCPcopy Create free account
hub / github.com/Noumena-Network/code / pollSleepDetectionThresholdMs

Function pollSleepDetectionThresholdMs

src/bridge/bridgeMain.ts:113–115  ·  view source on GitHub ↗

* Returns the threshold for detecting system sleep/wake in the poll loop. * Must exceed the max backoff cap — otherwise normal backoff delays trigger * false sleep detection (resetting the error budget indefinitely). Using * 2× the connection backoff cap, matching the pattern in WebSocketTranspor

(backoff: BackoffConfig)

Source from the content-addressed store, hash-verified

111 * and replBridge.
112 */
113function pollSleepDetectionThresholdMs(backoff: BackoffConfig): number {
114 return backoff.connCapMs * 2
115}
116
117/**
118 * Returns the args that must precede CLI flags when spawning a child CLI

Callers 1

runBridgeLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected