Skip to content

BlazorHeartbeat is a Blazor component that maintains the SignalR connection in a Server side Blazor application. It is particularly useful when your application is hosted behind an Application Gateway with a connection timeout.

License

Notifications You must be signed in to change notification settings

xaviersolau/BlazorHeartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlazorHeartbeat

Build - CI License: MIT NuGet Beta

BlazorHeartbeat is a Blazor component that maintains the SignalR connection in a Server side Blazor application. It is particularly useful when your application is hosted behind an Application Gateway with a connection timeout.

Don't hesitate to post issue, pull request on the project or to fork and improve the project.

License and credits

BlazorHeartbeat project is written by Xavier Solau. It's licensed under the MIT license.


Installation

You can checkout this Github repository or you can use the NuGet package:

Install using the command line from the Package Manager:

Install-Package SoloX.BlazorHeartbeat -version 1.0.0

Install using the .Net CLI:

dotnet add package SoloX.BlazorHeartbeat --version 1.0.0

Install editing your project file (csproj):

<PackageReference Include="SoloX.BlazorHeartbeat" Version="1.0.0" />

How to use it

Note that you can find code examples in this repository in this location: src/examples.

Basically, all you need to do is to add the Heartbeat element at the end of the App.rasor file in your Blazor Server-Side application. You can optionally specify the PingDelay.

<Heartbeat PingDelay="60000" />

Don't forget to add the using directive in the _Imports.razor file:

@using SoloX.BlazorHeartbeat

About

BlazorHeartbeat is a Blazor component that maintains the SignalR connection in a Server side Blazor application. It is particularly useful when your application is hosted behind an Application Gateway with a connection timeout.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published