MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getWebSocketTLSOptions

Function getWebSocketTLSOptions

source code/utils/mtls.ts:102–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 * Get TLS options for WebSocket connections
101 */
102export function getWebSocketTLSOptions(): tls.ConnectionOptions | undefined {
103 const mtlsConfig = getMTLSConfig()
104 const caCerts = getCACertificates()
105
106 if (!mtlsConfig && !caCerts) {
107 return undefined
108 }
109
110 return {
111 ...mtlsConfig,
112 ...(caCerts && { ca: caCerts }),
113 }
114}
115
116/**
117 * 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