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

Function close

src/services/api/openAICompatWsV2Native.ts:151–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150 let closed = false
151 const close = async () => {
152 if (closed) return
153 closed = true
154 await binding.wsV2Close?.(sessionId).catch(() => {})
155 }
156
157 let started = false
158 let startPromise: Promise<void> | null = null

Callers 4

closeAfterTerminalFrameFunction · 0.70
cancelAndCloseFunction · 0.70
pullFunction · 0.70
cancelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected