Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xaviersolau/blazorheartbeat
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.
https://github.com/xaviersolau/blazorheartbeat
blazor blazor-server dotnet heartbeat signalr timeout
Last synced: about 10 hours ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/xaviersolau/blazorheartbeat
- Owner: xaviersolau
- License: mit
- Created: 2020-10-12T20:23:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-09T23:28:04.000Z (almost 4 years ago)
- Last Synced: 2024-10-01T15:38:36.854Z (3 months ago)
- Topics: blazor, blazor-server, dotnet, heartbeat, signalr, timeout
- Language: C#
- Homepage:
- Size: 225 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlazorHeartbeat
[![Build - CI](https://github.com/xaviersolau/BlazorHeartbeat/workflows/Build%20-%20CI/badge.svg)](https://github.com/xaviersolau/BlazorHeartbeat/actions?query=workflow%3A%22Build+-+CI%22)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![NuGet Beta](https://img.shields.io/nuget/vpre/SoloX.BlazorHeartbeat.svg)](https://www.nuget.org/packages/SoloX.BlazorHeartbeat)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:**
```bash
Install-Package SoloX.BlazorHeartbeat -version 1.0.0
```**Install using the .Net CLI:**
```bash
dotnet add package SoloX.BlazorHeartbeat --version 1.0.0
```**Install editing your project file (csproj):**
```xml```
## 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.```html
```
Don't forget to add the using directive in the `_Imports.razor` file:
```razor
@using SoloX.BlazorHeartbeat
```