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

Function getWebSocketTLSOptions

src/utils/mtls.ts:100–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 * Get TLS options for WebSocket connections
99 */
100export function getWebSocketTLSOptions(): tls.ConnectionOptions | undefined {
101 const mtlsConfig = getMTLSConfig()
102 const caCerts = getCACertificates()
103
104 if (!mtlsConfig && !caCerts) {
105 return undefined
106 }
107
108 return {
109 ...mtlsConfig,
110 ...(caCerts && { ca: caCerts }),
111 }
112}
113
114/**
115 * Get fetch options with TLS configuration (mTLS + CA certs) for undici

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected