SignalR no connection in ws
mode
#2096
Replies: 3 comments 2 replies
-
Hi @mtlive !
Please note that we are not a consultancy team. I trust the community will assist you.
Unfortunately, our repository lacks a robust sample, and the Websockets feature for SignalR is a complex functionality to implement. It would be more efficient if you could upload your solution to your account as a repository for us to review. |
Beta Was this translation helpful? Give feedback.
-
I recommend conducting a Bing search for ".NET websocket 'Handshake was canceled error'" now. |
Beta Was this translation helpful? Give feedback.
-
The issue was the wrong order of middleware. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried everything in documentation for using SignalR in websocket mode (
ws
scheme) but couldn't get it to work.In our staging servers I get the "Handshake was canceled error" and in debug it takes so long that it switches out from ws.
Expected Behavior
Actual Behavior
Specifications
Also added services.AddSignalR();
Confiuration:
Beta Was this translation helpful? Give feedback.
All reactions