Introduction: Power of SignalR

For ASP.NET developers, SignalR is a library, which makes it simple to be added to the real time web functionality for your applications.

Real Time Web Functionality
Real time web functionality is crucial to .NET page life cycle. User sends request to the server and the server responds readily to the request. Then the user gets to see the result.

  • By using SignalR, we can implement the functionality that builds connection with the clients and can get contents from the server without sending any request to the server. Therefore, server pushes the contents to be connected to clients, as new data gets available at the server side.
  • SignalR Provide the Options to developer like “Long Polling", "Web Socket" as per the requirement of the client. "Long Polling", "Web Socket" are the terms which give a persistent connection between client and server.
  • In normal Application, Client-server connection is reestablished for every new request from the client, but SignalR Provides "Persistent Connection", like Chat Application or multiuser games.

Utilities of Real Time Web Functionality

  • To achieve Real Time Web Functionality, SignalR library Includes JavaScript's Library to client, SignalR Hub Class (through which content gets broadcasted to clients) and Owin StartUp Class (configuration for the SignalR server).
  • Using SignalR library, we can avoid page requests to drive the application, client-server communication that happens in real time so server gives the data required.
  • This library works efficiently with different .net languages such as C#, VB.net etc.
  • Efficiency of SignalR is impressive than the HTTP connection. SignalR Process data so quickly like the ShootR game
  • While using persistent connection, we must have security and authorization in place.
  • We also can achieve Dependency Injection in SignalR app.

System Requirements for Server

Following are OS that supports SignalR

  • Windows Server 2012
  • Windows Server 2008 r2
  • Windows 8
  • Windows 7
  • Windows Azure

System Requirements for Client

Browsers

  • IE versions 8, 9, 10 and 11
  • Mozilla Firefox: current version - 1(Windows and Mac versions).
  • Google Chrome: current version - 1(Windows and Mac versions).
  • Safari: current version - 1(Mac and iOS versions.)
  • Android browser

Nikunj Bhanushali is associated with Cogzie as Sales & Operations head and who loves sharing information regarding ASP.NET, MVC, SharePoint and EPi Server. Get in touch with him for Asp.Net Application development.