MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / disposeOnce

Function disposeOnce

projects/runtime-node/src/server.ts:97–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96 const disposeRuntimeConnection = runtime.connect(connection)
97 const disposeOnce = () => {
98 if (disposed) return
99 disposed = true
100 clearInterval(heartbeat)
101 disposeRuntimeConnection()
102 }
103
104 heartbeat = setInterval(() => {
105 if (socket.readyState !== WebSocket.OPEN) {

Callers 1

attachSocketFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected