Create a MVC web application from the New Project window as follows.
I gave the project the name "SignalRImplementation".
Your project solution will look such as follows.
After this please install Signal into our project solution by right-clicking References and select Manage NuGet packages as follows.
Then in the search window please enter SignalR as follows.
Select the first one Microsoft ASP.NET SignalR" (Version 2.2.0) and click on install. It will install SignalR components as follows.

After installing it will ask you to Accept the terms and conditions, please click on I Accept.
It will install all the components related to SignalR.
Click on Close.
Then please click on Close and please ensure that the SignalR J Query files are there inside the Scripts folder as follows.
After that just add a HTML Page to our solution and name it "index.html" as follows.

Then make sure you referred to jquery and the SignalR files as follows.
After adding a reference to the HTML Page then write a Document Ready function.
Adding a division inside the body with id as follows.
After this add a new item to our solution window and serch for " SignalR Hub Class (v2)" and name it "LiveDataShareHub".
After creating the hub open the HTML page then create a variable in the hub in jQuery as follows:
Remember on more thing. The Server Hub variable name should begin with a lower-case letter the same as your server Hub Name.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.







Charles BrauerPosted Jul 7, 2015, 3:48 PM
Hello Sreeja, You code does not work. There are several problems with your index.html file. At the beginning of you tutorial you have: <script src="~/SignalR/hubs"></script> And then later on you changed this line to: <script src="SignalR/hubs"></script> The problem I have is that Signal/hubs is not defined. Also there are several annoying spelling errors. The title should be: <title>SignalR Implementation</script> and the <body> div should be <div id="MainSignalRContent"></div> Charles
SriramPosted Jul 3, 2015, 7:58 AM
Excellent.................
ANudeep AnudeepPPosted May 6, 2015, 2:39 AM
Good one.
KATAKAM RAGHUPosted May 5, 2015, 12:31 PM
Nice work sunil keep on going with new Ideas and logics
Priyanka ThakurPosted May 4, 2015, 5:17 AM
Gud work sunil
Chiranjeevi MPosted May 4, 2015, 5:14 AM
Good one sunil
Durga ReddyPosted May 4, 2015, 5:00 AM
Good article...
raghavendra bPosted May 4, 2015, 4:56 AM
Nice article Good Work
sridevi nagPosted May 4, 2015, 4:55 AM
Good work
naga devi mekaPosted May 4, 2015, 4:53 AM
Good Work Sunil..:)
avinash thontaPosted May 4, 2015, 4:51 AM
Very helpful
haritha dollzPosted May 4, 2015, 4:45 AM
Good work...
Santhakumar MunuswamyPosted Apr 28, 2015, 2:47 PM
Good work
Karthik Muthu KaruppanPosted Apr 28, 2015, 11:39 AM
Good
NitinPosted Apr 28, 2015, 1:19 AM
Nice one