C
C#13mo ago
Victor

Blazor App - Websocket connection is lost after a while

Hello, I realized a Blazor app with many forms and it appears than the websocket connection is lost after a while without interacting with page or not focused it. Are there any solution to keep the connection up ?
2 Replies
Teddy
Teddy13mo ago
Not that I'm aware of, it's a similar issue to web apps that have a like 30 minute timeout, and if the tab isn't in focus you might come back to the page and it'll say "logging out in 30 seconds" unless you click whatever button, but it reality, it's already expired and you've already been logged out, so clicking the button won't save the session. The new Blazor in .NET 8 doesn't use web socket for form submission FYI.
Teddy
Teddy13mo ago
https://www.twitch.tv/videos/1977263472 (Starts at 1h34m - from .NET Conf)
Twitch
.NET Conf 2023 - Day 1 - visualstudio on Twitch
visualstudio went live on Twitch. Catch up on their Talk Shows & Podcasts VOD now.
Want results from more Discord servers?
Add your server