I discover a strange behavior on blazor .net 8. When you try to access to a wrong address from your blazor app, you will be redirected to a 404 page. However, if you have SignalR, it will not reconnect unless you exit the browser completly.
How to reproduce?
- Create a server and wasm app using visual studio
- Create a console project with signalr.
- Specify the signalr project dependence to your server project
- Add you signal connection protocol on the home component
- Launch the app
- When the home page is loaded, type a reference to your blazor app page which does not exist in the browser. You will experience the behavior specified in the intro.
I can provide if necessary a sample project. Did not post any project on my git related to this yet.
If you know how to resolve this behavior, please let me know.
8. List item
I tried to use a console app for signalr because I am using the same hub for .net maui app and blazor web app.