ARTICLE

SignalR Real-Time in ASP.NET

Posted by Amit Patel Articles | .NET 4.5 June 20, 2012
SignalR is an integrated client-and-server library that enables browser-based clients and ASP.NET based server components to have a bidirectional and multistep conversation
Reader Level:
Download Files:
 

Introduction

SignalR is an integrated client-and-server library that enables browser-based clients and ASP.NET based server components to have a bidirectional and multistep conversation. In other words, the conversation isn't limited to a single, stateless request/response data exchange; rather, it continues until explicitly closed. The conversation takes place over a persistent connection and lets the client send multiple messages to the server and the server replies and much more interestingly sends asynchronous messages to the client.

Steps to achieve SignalR in your projects.

Step 1: Create ASP.Net Blank Application.

SignalR1.png

Step 2
: Open Package Management Console


SignalR2.png

Step 3
: Now we will go to the nugget.org site and search for SignalR.Sample.

SignalR3.png

Step 4
. Now we will copy the installation package command and try to execute our Visual Studio Environment.

SignalR4.png

Step 5
: Now we will see that the SignalR sample has been installed as your Blank ASP.Net Application.

SignalR5.png

Step 6
: Now will run the application.

SignalR6.png

Step 7
: Now will click on the Open Market button.

SignalR.gif

You can also see the Package Diagram for SignalR Library.

SignalR8.png

Here are the actual classes and functions in the SignalR library.

SignalR9.png

Login to add your contents and source code to this article
post comment
     

what is the technical difference between WebSites and WebApplicattions? :P

Posted by Juan David Nicholls Cardon Feb 11, 2013

Hello Manish, I think it can be used only with .Net 4.0 and 4.5...

Posted by Shivanand Arur Dec 04, 2012

Hi amit, Can we use SignalR with .Net 2.0?

Posted by Manish Dwivedi Dec 02, 2012

Hey Amit Sir, this article is good... Liked it.. Actually I have been searching to learn about SignalR, but it seems like there are not much documents... But this article at least gave me quick go through kind of a thing... Thanks for sharing. :)

Posted by Shivanand Arur Nov 18, 2012

Joe, Yes it is in .NET 4.0.

Posted by Amit Patel Jul 12, 2012
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.