getWebSocketProxyUrl function
Get the proxy URL for WebSocket connections. Returns null if no proxy or URL should bypass proxy.
Implementation
String? getWebSocketProxyUrl(String url) {
final proxyUrl = getProxyUrl();
if (proxyUrl == null) return null;
if (shouldBypassProxy(url)) return null;
return proxyUrl;
}