MCPcopy Index your code
hub / github.com/anomalyco/opencode / dispose

Function dispose

packages/opencode/src/plugin/openai/codex.ts:270–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268
269 return {
270 async dispose() {
271 for (const websocketFetch of websocketFetches) websocketFetch.close()
272 websocketFetches.length = 0
273 },
274 async event(input) {
275 if (input.event.type !== "session.deleted") return
276 for (const websocketFetch of websocketFetches) websocketFetch.remove(input.event.properties.info.id)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected