getWebSocketProxyClient function
Get an HTTP client for WebSocket proxy support. Returns null if no proxy is configured or URL should bypass proxy.
Implementation
HttpClient? getWebSocketProxyClient(String url) {
final proxyUrl = getProxyUrl();
if (proxyUrl == null) return null;
if (shouldBypassProxy(url)) return null;
return createProxiedHttpClient(proxyUrl: proxyUrl);
}