Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR and ASP.net

What is Signalr built in top of?What are the technologies used to develop Signalr?Is it a combination of JavaScript Libraries and C Sharp files?While developing web apps with Signalr is it mandatory to update the JQuery libraries.Does new version of JQuery and Signalr lib causes stable application?Can we build Signalr applications using older versions of Asp.net?

like image 747
Sant14 Avatar asked Feb 04 '26 19:02

Sant14


2 Answers

The need for SignalR comes when you need to build a web application (server) that calls a method on the client (browser/mobile apps etc).

Thus, there are two parts to SignalR -- the web server, and the client.

The server part is built on top of .NET Framework. .NET 4.5 is required for the support of Web Sockets. You can look up how to program the server part at https://github.com/SignalR/SignalR/wiki/Hubs

The client part can be JavaScript, C# or any other implementations (there is an ObjectiveC implementation). If you are using JavaScript, then it would be best to update your jQuery to the latest version. The JavaScript client tutorial is at https://github.com/SignalR/SignalR/wiki/SignalR-JS-Client-Hubs and C# client tutorial is at https://github.com/SignalR/SignalR/wiki/SignalR-Client-Hubs

I've been using the RTM version of SignalR (release a few days ago) and latest version of jQuery and they are stable.

You can add SignalR to your existing projects, as long as you upgrade your existing projects to .NET 4.5. SignalR itself has no dependency on WebForms or MVC or WebPages. You will be creating SignalR server code by inheriting from the Hub class, and then wire up your clients (be it in aspx or cshtml) to your server by including the SignalR JavaScript libraries.

like image 50
Jeow Li Huan Avatar answered Feb 06 '26 10:02

Jeow Li Huan


SignalR is built both with .NET libraries and with JavaScript libraries. SignalR is presently dependent on jQuery, but it can be decoupled from jQuery with a bit of work (implement signalR without jquery). I believe that it was originally targeted to support .NET 4 or better, but there is a version available for .NET 3.5

Let me know if this answers your question.

like image 36
Glenn Ferrie Avatar answered Feb 06 '26 11:02

Glenn Ferrie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!