Hi everyone,
I'm facing an issue while connecting to Azure SignalR using a .NET 8 app. The connection consistently fails during the WebSocket handshake.
📋 Environment:
.NET Version: 8.0
Azure SignalR Client Library: Microsoft.Azure.SignalR
Transport Type: WebSocket
Network: Behind VPN / Corporate Proxy (may be influencing traffic)
🛠 Observations:
Exception: Handshake cancelled.
Transport: WebSocket
Hub: serversenteventshub
- **In my application logs**:
```yaml
pgsql
CopyEdit
Failed to connect to '(Primary)https://****-signalr.service.signalr.net(hub=Events)', will retry after back off period. Error: Unable to connect to the remote server. The base stream is not writable.
🧩 Questions for the Community:
- What are best practices to debug "Handshake Cancelled" issues with Azure SignalR and WebSockets?
- How can I force full TLS handshake in .NET 8 (disable session resumption) for testing?
- What HTTP headers must be explicitly present during a WebSocket handshake to Azure SignalR service?
- Are there known issues with TLS 1.3 and Azure SignalR service when client is behind proxies?
- Any recommendations for diagnostic logging settings in .NET to capture more low-level networking errors.
Here is the live trace from Azure SignalR