Soenneker.SignalR.Web.Client
4.0.802
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.SignalR.Web.Client --version 4.0.802
NuGet\Install-Package Soenneker.SignalR.Web.Client -Version 4.0.802
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.SignalR.Web.Client" Version="4.0.802" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SignalR.Web.Client" Version="4.0.802" />
<PackageReference Include="Soenneker.SignalR.Web.Client" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.SignalR.Web.Client --version 4.0.802
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.SignalR.Web.Client, 4.0.802"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.SignalR.Web.Client@4.0.802
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.SignalR.Web.Client&version=4.0.802
#tool nuget:?package=Soenneker.SignalR.Web.Client&version=4.0.802
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.SignalR.Web.Client
A resilient and dependable .NET SignalR web client.
Install
dotnet add package Soenneker.SignalR.Web.Client
Quick start
using Soenneker.SignalR.Web.Client.Abstract;
ISignalRWebClient signalRWebClient = /* resolve from DI */;
await signalRWebClient.StartConnection(default);
Starts the SignalR connection asynchronously.
What you get
ISignalRWebClient— A resilient and dependable .NET SignalR web client.SignalRConnectionRestoredContext— Describes a SignalR connection that has been established and is ready for application-level synchronization.SignalRWebClientOptions— Represents the options for configuring a SignalR web client.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
ISignalRWebClient.Connection |
Gets connection. | Gets connection. |
ISignalRWebClient.StartConnection(cancellationToken) |
Starts the SignalR connection asynchronously. | A task that completes after the Signal R Web Client has started. |
ISignalRWebClient.StopConnection(cancellationToken) |
Stops the SignalR connection asynchronously. | A task that completes after the Signal R Web Client has stopped. |
SignalRConnectionRestoredContext.ConnectionId |
Gets the current connection identifier, when the server provides one. | Gets the current connection identifier, when the server provides one. |
SignalRConnectionRestoredContext.IsReconnect |
Gets a value indicating whether this connection restored a previously established session. | Gets a value indicating whether this connection restored a previously established session. |
SignalRWebClientOptions.HubUrl |
Gets or sets the URL of the SignalR hub. | Gets or sets the URL of the SignalR hub. |
SignalRWebClientOptions.MaxRetryAttempts |
Gets or sets the maximum number of retry attempts for reconnecting. Default value is 5. | Gets or sets the maximum number of retry attempts for reconnecting. Default value is 5. |
SignalRWebClientOptions.ReconnectIndefinitely |
Gets or sets a value indicating whether recovery continues with another retry cycle after MaxRetryAttempts is reached. |
Gets or sets a value indicating whether recovery continues with another retry cycle after MaxRetryAttempts is reached. |
SignalRWebClientOptions.InitialRetryDelay |
Gets or sets the initial delay before the first retry attempt. Default value is 2 seconds. | Gets or sets the initial delay before the first retry attempt. Default value is 2 seconds. |
SignalRWebClientOptions.Logger |
Gets or sets the logger to be used for logging events. | Gets or sets the logger to be used for logging events. |
SignalRWebClientOptions.Log |
Gets or sets a value indicating whether to log connection events. | Gets or sets a value indicating whether to log connection events. |
SignalRWebClientOptions.AccessTokenProvider |
Gets or sets the access token provider used for authentication. | Gets or sets the access token provider used for authentication. |
SignalRWebClientOptions.Headers |
Gets or sets the custom headers to be sent with each request. | Gets or sets the custom headers to be sent with each request. |
SignalRWebClientOptions.TransportType |
Gets or sets the transport type for the SignalR connection. | Gets or sets the transport type for the SignalR connection. |
SignalRWebClientOptions.KeepAliveInterval |
Gets or sets the interval at which the client sends keep-alive pings to the server. Default value is 15 seconds. | Gets or sets the interval at which the client sends keep-alive pings to the server. Default value is 15 seconds. |
SignalRWebClientOptions.ConnectionClosed |
Gets or sets the action to be invoked when the connection is closed due to an error. | Gets or sets the action to be invoked when the connection is closed due to an error. |
SignalRWebClientOptions.ConnectionReconnecting |
Gets or sets the action to be invoked when the connection is reconnecting after being lost. | Gets or sets the action to be invoked when the connection is reconnecting after being lost. |
SignalRWebClientOptions.ConnectionReconnected |
Gets or sets the action to be invoked when the connection is successfully reconnected. | Gets or sets the action to be invoked when the connection is successfully reconnected. |
Practical notes
- Cancellation stops pending work; it does not undo work that has already completed.
- Dispose instances you own when their scope ends so held resources can be released.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.AspNetCore.SignalR.Client (>= 10.0.11)
- Polly (>= 8.7.0)
- Soenneker.Atomics.ValueBools (>= 4.0.35)
- Soenneker.Extensions.Task (>= 4.0.127)
- Soenneker.Extensions.ValueTask (>= 4.0.118)
- Soenneker.Utils.Random (>= 4.0.129)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.SignalR.Web.Client:
| Package | Downloads |
|---|---|
|
Soenneker.SignalR.Web.Clients
Providing async thread-safe resilient and dependable SignalR web client singletons |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.810 | 28 | 9/1/2026 |
| 4.0.809 | 96 | 8/31/2026 |
| 4.0.808 | 85 | 8/30/2026 |
| 4.0.807 | 73 | 8/30/2026 |
| 4.0.806 | 90 | 8/30/2026 |
| 4.0.805 | 88 | 8/30/2026 |
| 4.0.804 | 86 | 8/30/2026 |
| 4.0.803 | 86 | 8/30/2026 |
| 4.0.802 | 76 | 8/29/2026 |
| 4.0.801 | 72 | 8/29/2026 |
| 4.0.800 | 79 | 8/29/2026 |
| 4.0.799 | 77 | 8/29/2026 |
| 4.0.798 | 145 | 8/26/2026 |
| 4.0.797 | 393 | 8/12/2026 |
| 4.0.796 | 108 | 8/11/2026 |
| 4.0.795 | 260 | 7/28/2026 |
| 4.0.794 | 135 | 7/28/2026 |
| 4.0.793 | 99 | 7/28/2026 |
| 4.0.792 | 126 | 7/27/2026 |
| 4.0.791 | 101 | 7/27/2026 |
Loading failed
Improve README usability and API guidance