MCPcopy Create free account
hub / github.com/anomalyco/opencode / invalidate

Function invalidate

packages/opencode/src/plugin/openai/ws-pool.ts:243–250  ·  view source on GitHub ↗
(entry: PoolEntry)

Source from the content-addressed store, hash-verified

241}
242
243function invalidate(entry: PoolEntry) {
244 if (entry.socket) {
245 entry.socket.on("error", () => {})
246 entry.socket.terminate()
247 entry.socket = undefined
248 }
249 entry.connectedAt = undefined
250}
251
252export function withoutInternalHeaders<T extends { headers?: HeadersInit }>(init: T | undefined): T | undefined {
253 if (!init?.headers) return init

Callers 5

websocketFetchFunction · 0.70
pruneFunction · 0.70
closeFunction · 0.70
removeFunction · 0.70
socketFunction · 0.70

Calls 1

onMethod · 0.80

Tested by

no test coverage detected