MCPcopy
hub / github.com/codeaashu/claude-code / getWebSocketProxyUrl

Function getWebSocketProxyUrl

src/utils/proxy.ts:263–275  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

261 * Returns undefined if no proxy is configured or URL should bypass proxy.
262 */
263export function getWebSocketProxyUrl(url: string): string | undefined {
264 const proxyUrl = getProxyUrl()
265
266 if (!proxyUrl) {
267 return undefined
268 }
269
270 if (shouldBypassProxy(url)) {
271 return undefined
272 }
273
274 return proxyUrl
275}
276
277/**
278 * Get fetch options for the Anthropic SDK with proxy and mTLS configuration

Callers 5

connectMethod · 0.85
openTunnelFunction · 0.85
connectMethod · 0.85
connectVoiceStreamFunction · 0.85
client.tsFile · 0.85

Calls 2

getProxyUrlFunction · 0.85
shouldBypassProxyFunction · 0.85

Tested by

no test coverage detected