Forum Discussion
AaronM00
Jun 16, 2025Copper Contributor
RDS HTML5 WebClient - WebSocket issues on reconnection
Hi Everyone - Currently have an RD farm deployed to roughly 1000 users utilising azure app proxy and RD Web HTML5 client. This seems to work ok besides some issues with random disconnections. Thi...
Kidd_Ip
Jun 19, 2025MVP
Take this:
- WebSocket Support in Azure App Proxy
- Confirm that WebSocket support is fully enabled in your Azure App Proxy configuration. Even if it appears to work intermittently, inconsistent behavior can stem from proxy timeouts or dropped upgrade headers.
- Idle Timeout Settings
- Check the App Proxy connector idle timeout and RD Gateway timeout policies. If the WebSocket is idle too long, it may be dropped silently.
- Reverse Proxy or Firewall Interference
- If you're using a reverse proxy (e.g., NGINX, NetScaler), ensure it’s configured to allow WebSocket traffic (Upgrade and Connection headers must be preserved).
- Some users resolved similar issues by adjusting Content-Security-Policy headers and allowing blob: and data: sources.
- Client-Side Network Conditions
- Random disconnects can also be caused by unstable client networks (e.g., Wi-Fi drops, VPN latency). Consider enabling diagnostic logging on the client side to correlate disconnects with network events.
- WebClient Version & Updates
- Make sure you're using the latest version of the HTML5 WebClient. Microsoft occasionally releases fixes that improve reconnection logic and WebSocket resilience.
- Fallback Strategy
- If reconnection fails after 10 attempts, consider scripting a client-side refresh or auto-click of the reconnect button as a temporary workaround.