Closed Mike-E-angelo closed 1 year ago
For number 2 you would most likely have to maintain your own fork of Blazor/dotnet and automatically refresh the page for the users when server is found, but circuit is lost (connection rejected). Maintaining a fork is a painful experience, but automatically refreshing a page on rejected connection is not easily doable without that.
See: https://github.com/dotnet/aspnetcore/pull/32122
https://github.com/konradbartecki/aspnetcore/tree/bugfix/32113-blazor-serverside-reconnection
Thank you for the suggestion + feedback @konradbartecki, it is appreciated. FWIW for the 2nd point it is not intended to be involved or to solve a large problem here. We simply want to have a big button that says "reconnect" like it does with failed connections:
I am of course super hoping that the Blazor team is able to attend to the circuit issues for .NET8, but from my view it appears that the Blazor United efforts sort of put everything up in the air, with no telling what is going to be attended to now 😞
So, here's the current design version.
Ahhh I forgot to update this thread and let you know that your work might be better spent on other tasks here. It turns out there is a "hack" that will refresh the page and re-establish the connection whenever the message is displayed. I hope to have it implemented in the next day or so. 🤞
At long last looking into this now 🙏
This is complete and deployed. verified on iOS/Mac/Windows: https://github.com/dotnet/aspnetcore/issues/30344#issuecomment-1474780663
We have two painful issues w/ the Blazor reconnection experience: