Signalr: Can't find the jquery.signalr.min.js

Created on 23 Jul 2014  路  7Comments  路  Source: SignalR/SignalR

I downloaded the files and tried to find the jquery.signalr.min.-js, but I can't find it.

Question

Most helpful comment

You can also use bower to install the JS client (bower install signalr).

Or, download it from the CDN http://www.asp.net/ajaxlibrary/cdn.ashx#ASPNET_SignalR_Releases_on_the_CDN_17

All 7 comments

Downloaded what files? Are you using the nuget package?

I saw this article, https://github.com/SignalR/SignalR/wiki/SignalR-JS-Client
In the example code there is an reference to a jquery.signalr.min.js file.

I downloaded the files (zip file) from here https://github.com/SignalR/SignalR

But I can't find the "jquery.signalr.min.js" file that is required for html and javascript clients.

Typically you use NuGet to install SignalR to your application. It will install the latest version of NuGet. Alternatively you can use tooling that is built-in but due to the slower shipping cadence of VS and VS Updates (vs. NuGet packages) the version of SignalR installed to your project by tools may be older. If you install SignalR using VS you can update packages to the latest version by running Update-Package Microsoft.AspNet.SignalR.Client command from the Package Manager Console (Tools -> NuGet Package Manager -> Package Manager Console) to update the client and Update-Package Microsoft.AspNet.SignalR to update the server. I would also recommend to use SignalR tutorials from here: http://www.asp.net/signalr/overview/signalr-20 (this is one you may want start with to have your first SignalR app using the javascript client up and running http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20)

I'm not a .NET developer. I'm using Sublime Text as IDE. I'm more of a HTML/CSS, Javascript and PHP developer. A friend asked me if I could create a test with html and javascript against his Azure Mobile Service that uses SignalR.

Thanks for your answer anyway :)

If you are not using Visual Studio you can install packages from the command prompt using nuget.exe. You can download it from the official NuGet website: http://www.nuget.org/nuget.exe. On Mac/Linux you would have to use Mono to run the tool. Once you get the nuget.exe run the following command:
NuGet.exe install Microsoft.AspNet.Signalr.JS and it will "install" your package to the current folder. "Install" in this case means that it will download the package and unpack its contents which will give you all the scripts you need. Then you will need to copy the scripts to your project and you should be good to go (note that SignalR js client currently depends on jQuery so you will have to copy .js file(s) from the jQuery scripts folder in addition to SignalR js client.

You can also use bower to install the JS client (bower install signalr).

Or, download it from the CDN http://www.asp.net/ajaxlibrary/cdn.ashx#ASPNET_SignalR_Releases_on_the_CDN_17

It seems that the available version of jquery.signalR.min.js in cdn is not recent one.

Was this page helpful?
0 / 5 - 0 ratings