Microsoft.AspNet.SignalR 2.3.0

Please see http://go.microsoft.com/fwlink/?LinkId=272764 for more information on using SignalR.

Upgrading from 1.x to 2.0

Please see http://go.microsoft.com/fwlink/?LinkId=320578 for more information on how to upgrade your SignalR 1.x application to 2.0.

Mapping the Hubs connection

To enable SignalR in your application, create a class called Startup with the following:

using Microsoft.Owin; using Owin; using MyWebApplication;

namespace MyWebApplication { public class Startup { public void Configuration(IAppBuilder app) { app.MapSignalR(); } } }

Getting Started

See http://www.asp.net/signalr/overview/getting-started for more information on how to get started.

Why does ~/signalr/hubs return 404 or Why do I get a JavaScript error: 'myhub is undefined'?

This issue is generally due to a missing or invalid script reference to the auto-generated Hub JavaScript proxy at '~/signalr/hubs'. Please make sure that the Hub route is registered before any other routes in your application.

In ASP.NET MVC 4 you can do the following:

  <script src="~/signalr/hubs"></script>

If you're writing an ASP.NET MVC 3 application, make sure that you are using Url.Content for your script references:

<script src="@Url.Content("~/signalr/hubs")"></script>

If you're writing a regular ASP.NET application use ResolveClientUrl for your script references or register them via the ScriptManager using a app root relative path (starting with a '~/'):

<script src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>

If the above still doesn't work, you may have an issue with routing and extensionless URLs. To fix this, ensure you have the latest patches installed for IIS and ASP.NET.

No packages depend on Microsoft.AspNet.SignalR.

Version Downloads Last updated
2.4.3 14 06/14/2023
2.4.2 12 06/13/2023
2.4.1 12 06/11/2023
2.4.0 11 06/13/2023
2.4.0-preview2-20181018-02 8 02/16/2024
2.4.0-preview1-20180920-03 11 10/13/2023
2.3.0 38 11/29/2019
2.2.3 8 06/12/2023
2.2.2 11 06/13/2023
2.2.2-preview1 11 02/16/2024
2.2.1 9 06/13/2023
2.2.0 15 01/17/2023
2.1.2 11 06/13/2023
2.1.1 8 06/13/2023
2.1.0 9 06/11/2023
2.0.3 13 06/12/2023
2.0.2 7 02/16/2024
2.0.1 10 06/12/2023
1.2.2 8 06/12/2023
1.2.1 9 06/12/2023
1.2.0 10 06/12/2023
1.1.4 10 06/13/2023
1.0.1 7 12/30/2023
1.0.0 9 06/12/2023
1.0.0-rc2 6 02/16/2024
1.0.0-rc1 11 02/16/2024
1.0.0-alpha2 10 02/16/2024
1.0.0-alpha1 11 02/16/2024