MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / onConnectError

Function onConnectError

templates/nodejs-ts/src/main.ts:83–86  ·  view source on GitHub ↗
(_ctx: ErrorContext, error: Error)

Source from the content-addressed store, hash-verified

81}
82
83function onConnectError(_ctx: ErrorContext, error: Error): void {
84 console.error('Connection error:', error);
85 process.exit(1);
86}
87
88// Token persistence (file-based for Node.js instead of localStorage)
89const __dirname = path.dirname(fileURLToPath(import.meta.url));

Callers

nothing calls this directly

Calls 2

exitMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…