Reconnection error when overwriting configureSignalR (Blazor) #596

Closed
opened 2026-01-29 16:43:45 +00:00 by claunia · 1 comment
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:45 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#596