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

Function connectionLimitError

packages/opencode/src/plugin/openai/ws-pool.ts:197–200  ·  view source on GitHub ↗
(event: Record<string, unknown>)

Source from the content-addressed store, hash-verified

195}
196
197function connectionLimitError(event: Record<string, unknown>) {
198 if (event.type !== "error" || !isRecord(event.error) || event.error.code !== CONNECTION_LIMIT_REACHED_CODE) return
199 return new Error(typeof event.error.message === "string" ? event.error.message : CONNECTION_LIMIT_REACHED_CODE)
200}
201
202function failedResponse(error: ProviderError.ResponseStreamError) {
203 return new Response(

Callers 1

websocketFetchFunction · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected