Reconnection error when overwriting configureSignalR (Blazor) #594

Open
opened 2026-01-29 16:43:40 +00:00 by claunia · 0 comments
Owner

Originally created by @noelroehrig on GitHub (Nov 16, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version: Electron.NET API/ Electron.NET CLI: 9.31.2; net core: 3.1

Hey!
We are using a setup of Electron.NET and Blazor (Server) which is working great in general. Recently we made adjustments to the Blazor circuit / reconnection logic to sustain states more reliantly.
Afterwards we noticed that the Electron App loses it's connection after 2-4 minutes of inactivity. This doesn't happen in the browser version.

The following adjustment causes this issue (https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/additional-scenarios?view=aspnetcore-3.1#logging):

<script autostart="false" src="_framework/blazor.server.js"></script>
<script>
        Blazor.start({
            configureSignalR: function (builder) {
                builder.configureLogging("trace");
            }
        });
</script>

Any idea on why this only occurs in Electron?

Thanks!

Originally created by @noelroehrig on GitHub (Nov 16, 2020). Originally assigned to: @GregorBiswanger on GitHub. * **Version**: Electron.NET API/ Electron.NET CLI: 9.31.2; net core: 3.1 Hey! We are using a setup of Electron.NET and Blazor (Server) which is working great in general. Recently we made adjustments to the Blazor circuit / reconnection logic to sustain states more reliantly. Afterwards we noticed that the Electron App loses it's connection after 2-4 minutes of inactivity. This doesn't happen in the browser version. The following adjustment causes this issue (https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/additional-scenarios?view=aspnetcore-3.1#logging): ``` <script autostart="false" src="_framework/blazor.server.js"></script> <script> Blazor.start({ configureSignalR: function (builder) { builder.configureLogging("trace"); } }); </script> ``` Any idea on why this only occurs in Electron? Thanks!
claunia added the bug label 2026-01-29 16:43:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#594