MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / isServiceConnectionError

Function isServiceConnectionError

scripts/integration/cli.mjs:828–836  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

826}
827
828function isServiceConnectionError(error) {
829 const message = String(error?.message ?? error).toLowerCase();
830 return (
831 message.includes("connect to simdeck service") ||
832 message.includes("connection refused") ||
833 message.includes("connection reset") ||
834 message.includes("failed to connect")
835 );
836}
837
838async function retrySimdeckTextUntil(
839 args,

Callers 2

retrySimdeckJsonFunction · 0.85
retrySimdeckTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected