Soenneker.SignalR.Web.Client 4.0.807

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.SignalR.Web.Client --version 4.0.807
                    
NuGet\Install-Package Soenneker.SignalR.Web.Client -Version 4.0.807
                    
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.807" />
                    
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.807" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.SignalR.Web.Client" />
                    
Project file
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.807
                    
#r "nuget: Soenneker.SignalR.Web.Client, 4.0.807"
                    
#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.807
                    
#: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.807
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SignalR.Web.Client&version=4.0.807
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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.

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 0 9/1/2026
4.0.809 69 8/31/2026
4.0.808 67 8/30/2026
4.0.807 56 8/30/2026
4.0.806 72 8/30/2026
4.0.805 72 8/30/2026
4.0.804 69 8/30/2026
4.0.803 69 8/30/2026
4.0.802 59 8/29/2026
4.0.801 55 8/29/2026
4.0.800 63 8/29/2026
4.0.799 60 8/29/2026
4.0.798 125 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

Update dependency Soenneker.Extensions.ValueTask to 4.0.120 (#1334)