NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #1079 most downloaded on NuGet
Incredibly simple real-time web for .NET. This package pulls in the server components and JavaScript client required to use SignalR in an ASP.NET application.
Latest stable
2.4.3
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 2.1 years
Nearly every release is documented
notes for 20 of 21 stable releases
9 versions withdrawn
withdrawn after publishing
127 years old
37 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
This is a patch release for SignalR 2.4.
This is a patch release for SignalR 2.4.
This release brings minor bug fixes and improvements. It should be fully compatible with 2.4.0 applications.
See a list of issues fixed in this release here: https://github.com/SignalR/SignalR/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed+milestone%3A2.4.3+
The following packages have been released to NuGet.org:
| Package ID | Version |
|---|---|
| Microsoft.AspNet.SignalR | 2.4.3 |
| Microsoft.AspNet.SignalR.Client | 2.4.3 |
| Microsoft.AspNet.SignalR.Core | 2.4.3 |
| Microsoft.AspNet.SignalR.JS | 2.4.3 |
| Microsoft.AspNet.SignalR.Redis | 2.4.3 |
| Microsoft.AspNet.SignalR.StackExchangeRedis | 2.4.3 |
| Microsoft.AspNet.SignalR.SelfHost | 2.4.3 |
| Microsoft.AspNet.SignalR.ServiceBus | 2.4.3 |
| Microsoft.AspNet.SignalR.ServiceBus3 | 2.4.3 |
| Microsoft.AspNet.SignalR.SqlServer | 2.4.3 |
| Microsoft.AspNet.SignalR.SystemWeb | 2.4.3 |
| Microsoft.AspNet.SignalR.Utils | 2.4.3 |
Also, the localized satellite packages have been uploaded as well.
The following NPM modules have been released to npmjs.com
| Package ID | Version | Tag |
|---|---|---|
| signalr | 2.4.3 | latest |
To install the preview release of the NPM package, use the command npm install signalr
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This is a patch release for SignalR 2.4.
This is a patch release for SignalR 2.4.
This release brings minor bug fixes and improvements. It should be fully compatible with 2.4.0 applications.
See a list of issues fixed in this release here: https://github.com/SignalR/SignalR/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed+milestone%3A2.4.2+
The following packages have been released to NuGet.org:
| Package ID | Version |
|---|---|
| Microsoft.AspNet.SignalR | 2.4.2 |
| Microsoft.AspNet.SignalR.Client | 2.4.2 |
| Microsoft.AspNet.SignalR.Core | 2.4.2 |
| Microsoft.AspNet.SignalR.JS | 2.4.2 |
| Microsoft.AspNet.SignalR.Redis | 2.4.2 |
| Microsoft.AspNet.SignalR.StackExchangeRedis | 2.4.2 |
| Microsoft.AspNet.SignalR.SelfHost | 2.4.2 |
| Microsoft.AspNet.SignalR.ServiceBus | 2.4.2 |
| Microsoft.AspNet.SignalR.ServiceBus3 | 2.4.2 |
| Microsoft.AspNet.SignalR.SqlServer | 2.4.2 |
| Microsoft.AspNet.SignalR.SystemWeb | 2.4.2 |
| Microsoft.AspNet.SignalR.Utils | 2.4.2 |
Also, the localized satellite packages have been uploaded as well.
The following NPM modules have been released to npmjs.com
| Package ID | Version | Tag |
|---|---|---|
| signalr | 2.4.2 | latest |
To install the preview release of the NPM package, use the command npm install signalr
NOTE: Since Bower is now deprecated, we are no longer publishing to https://github.com/SignalR/bower-signalr
This is a patch release for SignalR 2.4.
This release brings minor bug fixes and improvements. It should be fully compatible with 2.4.0 applications.
See a list of issues fixed in this release here: https://github.com/SignalR/SignalR/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed+label%3A%22closed%3A+Fixed%22+milestone%3A2.4.1
The following packages have been released to NuGet.org:
| Package ID | Version |
|---|---|
| Microsoft.AspNet.SignalR | 2.4.1 |
| Microsoft.AspNet.SignalR.Client | 2.4.1 |
| Microsoft.AspNet.SignalR.Core | 2.4.1 |
| Microsoft.AspNet.SignalR.JS | 2.4.1 |
| Microsoft.AspNet.SignalR.Redis | 2.4.1 |
| Microsoft.AspNet.SignalR.StackExchangeRedis | 2.4.1 |
| Microsoft.AspNet.SignalR.SelfHost | 2.4.1 |
| Microsoft.AspNet.SignalR.ServiceBus | 2.4.1 |
| Microsoft.AspNet.SignalR.ServiceBus3 | 2.4.1 |
| Microsoft.AspNet.SignalR.SqlServer | 2.4.1 |
| Microsoft.AspNet.SignalR.SystemWeb | 2.4.1 |
| Microsoft.AspNet.SignalR.Utils | 2.4.1 |
Also, the localized satellite packages have been uploaded as well.
The following NPM modules have been released to npmjs.com
| Package ID | Version | Tag |
|---|---|---|
| signalr | 2.4.1 | latest |
NOTE: Since Bower is now deprecated, we are no longer publishing to https://github.com/SignalR/bower-signalr
To install the preview release of the NPM package, use the command npm install signalr
This is the RTM build of ASP.NET SignalR 2.4.0 🎉🎈🎆
This is the RTM build of ASP.NET SignalR 2.4.0 🎉🎈🎆
This release brings support for the Azure SignalR Service, see the Azure SignalR Samples repo for a sample application and tutorial for deploying an ASP.NET SignalR application using the Azure SignalR Service.
ASP.NET SignalR 2.4 is a fully compatible release so please upgrade even if you aren't planning to use the Azure SignalR Service and report any bugs you find! There are a number of bug fixes that are unrelated to Azure SignalR support!
See a list of fixed issues here: https://github.com/SignalR/SignalR/issues?utf8=%E2%9C%93&q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed+label%3A%22closed%3A+Fixed%22+
The following packages have been released to NuGet.org:
| Package ID | Version |
|---|---|
| Microsoft.AspNet.SignalR | 2.4.0 |
| Microsoft.AspNet.SignalR.Client | 2.4.0 |
| Microsoft.AspNet.SignalR.Core | 2.4.0 |
| Microsoft.AspNet.SignalR.JS | 2.4.0 |
| Microsoft.AspNet.SignalR.Redis | 2.4.0 |
| Microsoft.AspNet.SignalR.StackExchangeRedis 💡 new | 2.4.0 |
| Microsoft.AspNet.SignalR.SelfHost | 2.4.0 |
| Microsoft.AspNet.SignalR.ServiceBus | 2.4.0 |
| Microsoft.AspNet.SignalR.ServiceBus3 | 2.4.0 |
| Microsoft.AspNet.SignalR.SqlServer | 2.4.0 |
| Microsoft.AspNet.SignalR.SystemWeb | 2.4.0 |
| Microsoft.AspNet.SignalR.Utils | 2.4.0 |
Also, the localized satellite packages have been uploaded as well.
The following NPM modules have been released to npmjs.com
| Package ID | Version | Tag |
|---|---|---|
| signalr | 2.4.0 | latest |
To install the preview release of the NPM package, use the command npm install signalr
Nothing published for this version
Nothing published for this version
IMPORTANT: Even though this version has incremented the minor version, this should be considered a patch release. There are no new features in this re
IMPORTANT: Even though this version has incremented the minor version, this should be considered a patch release. There are no new features in this release, only bug fixes. The version number was changed in order to resolve a blocking issue. See below for more details
Updated packages are now available on NuGet.org!
ScaleoutStore doesn't update MinMappingId properly, resulting in lost messages (https://github.com/SignalR/SignalR/issues/4121)Short version: Our build system has some quirks and the easiest way to resolve it was to simply update the minor version.
Our build system produces version numbers of the following format: Major.Minor.Build.Revision. The Major and Minor tokens come from the major and minor version of the product (2.3 in this case). The Revision token is a sequence number. However the Build token (the third one) is generated based on the date in the following way: YMMdd:
Y is the number of years since the "start year" of the product, it's 1-based so the first builds were 1MMdd, a year later they had 2MMdd, etc. This number does not reset with each Major/Minor version bumpMM is the month of the year (01 is January, 12 is December, etc.)dd is the day of the monthThis year (2018) marks the 7th year of SignalR, thus the version number for 2.2.3 (the previous patch) was going to be something like the following: 2.2.7MMdd.1234. However, in Windows version numbers, each field is a 16-bit integer, and thus has a maximum value of 65535. So the build failed. In order to fix this, we reset the "start year" value so that new builds would be of the form 2.2.1MMdd.1234. However, there are already publicly released builds with version numbers like this. So in order to resolve this issue, we had to increment the minor version number, because 2.3.1MMdd is always considered newer than 2.2.6MMdd.
Nothing published for this version
Console application using async/await stops receiving after sending
Nothing published for this version
TypeLoadException occurring when using Strongly typed Hub
An unhandled exception in ProcessWebSocketRequestAsync method for request
Disable client-side keep alive checking in Long Polling clients by default
/start requests deadlock when the PreSendRequestHeaders event is set
In 2.1.0 we added an overload of OnDisconnect on PersistentConnection and Hub that takes a boolean indicating whether the disconnect from the client was due to a timeout or not. In making this change we also changed when the existing overload (without the parameter) was called. These changes together resulted in applications not always being called when a client disconnects in a way they were used to expecting. We're resolving this in 2.1.1 by removing the original overload (the parameterless one). OnDisconnect will now always be called when a client disconnects and the flag passed indicates whether it was due to a timeout or not.
Make HubCallerContext easier to mock for unit testing a Hub
We've changed what happens when a connection is detected as "gone" on the server. In the past, we made efforts to ensure the server-side disconnect events were raised only once, even if a logical connection had actually been alive on more than one server during its life (in the case of a web farm). This involved sending messages between web nodes in the farm which could lead to undue strain on the backplane, especially when the long polling transport was in use (see #2958).
From this version on, the event will always be raised on any server that has seen a connection and then detects it has gone. We've added a new overload (#2998) so that you can handle the cases when the connection stops due to timeout (like if it moves to another server, or loses network connectivity) or due to the stop method being called on the client (aka a graceful close, e.g. when the user closes the browser).
Be sure to factor this change of behavior into your application design.
IHubConnectionContext changed to IHubConnectionContext<T>To support the new strongly typed client Hubs (#2449) the interfaces IHubConnectionContext and IHubCallerConnectionContext had to be made generic. To continue using these types with a dynamic client method contract, as in previous versions, just specify the generic type argument as dynamic, e.g.
IHubConnectionContext<dynamic> context = GlobalHost.ConnectionManager.GetHubContext<MyHub>();
SB scale-out still re-try forever for un-recoverable error ConfigurationErrorsException
Change default Service Bus topic count to 5
Made some changes to better abstract BufferTextWriter.
Fix for MS13-103
This feature allows users to specify what the userId is based on an IRequest via a new interface IUserIdProvider:
This feature allows users to specify what the userId is based on an IRequest via a new interface IUserIdProvider:
public interface IUserIdProvider
{
string GetUserId(IRequest request);
}
By default there will be an implementation that uses the user's IPrincipal.Identity.Name as the user name.
In hubs, you'll be able to send messages to these users via a new API:
public class MyHub : Hub
{
public void Send(string userId, string message)
{
Clients.User(userId).send(message);
}
}
Users can now throw HubException from any hub invocation. The constructor of the HubException can take a string message and an object extra error data. SignalR will auto-serialize the exception and send it to the client where it will be used to reject/fail the hub method invocation.
The show detailed hub exceptions setting has no bearing on HubException being sent back to the client or not; it always is.
Server
public class MyHub : Hub
{
public void Send(string message)
{
if(message.Contains("<script>"))
{
throw new HubException("This message will flow to the client", new { user = Context.User.Identity.Name, message = message });
}
Clients.All.send(message);
}
}
JS Client
myHub.server.send("<script>")
.fail(function (e) {
if (e.source === 'HubException') {
console.log(e.message + ' : ' + e.data.user);
}
});
.NET Client
try
{
await myHub.Invoke("Send", "<script>");
}
catch(HubException ex)
{
Conosle.WriteLine(ex.Message);
}
Nothing published for this version
Nothing published for this version
Nothing published for this version
ObservableDbOperation looking for Insert but receiving Update on new events (1.x)
on JS client, restarting a connection after disconnected, with longPolling transport it send poll loop without timeout Id
Allow for overriding JS json deserializing function
Server Sent Events transport throws an exception in JS client when trying to log
Fix for MS13-103
Hub invocation callbacks are not cleaned up in C# client if no response is received causing a memory leak
Scaleout Message Bus Memory Leak
SignalR Groups.Remove doesn't work
Add tracing to Service Bus message bus
Nothing published for this version
Connection Id not read properly when additional query string parameters are added
` csharp var config = new HubConfiguration { EnableCrossDomain = true } RouteTable.Routes.MapHubs(config); `
var config = new HubConfiguration
{
EnableCrossDomain = true
}
RouteTable.Routes.MapHubs(config);
var config = new HubConfiguration
{
EnableDetailedErrors = true
}
RouteTable.Routes.MapHubs(config);
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.