Skip to main content

Posts

Showing posts with the label SignalR

SignalR Tutorial: Your first SignalR chat application with ASP.net MVC 4

In last post I explained what SignalR, why do us need it is and what are the prerequisites. In this tutorial we’ll use ASP.NET SignalR to create a real-time chat application. First of all we’ll add SignalR library to an MVC 4 application and then create hub class (to push content to client) and after that we’ll use SignalR jQuery library to send messages and display updates from the hub. ·          Open Visual Studio -> Select ASP.NET MVC4 Web Application template (under Web Templates) and enter the name of application as “MVCSignalRApp” and then click OK. ·          On the next screen select “Internet Application” template and then click OK. ·          Your basic MVC application is ready to use, now we need to add SignalR libraries to this application. To add SignalR libraries open Package Manager Console (TOOLS - >Library Package M...

SignalR Tutorial: Introduction to SignalR in ASP.Net

What is SignalR? SignalR is open source .Net library managed by David Fowler and Damien Edwards and well supported by Microsoft and now it is part of ASP.Net framework as well. You can see this project on GitHub . Interaction using SignalR Key points about SignalR: ·          SignalR is invented by David Fowler and Damien Edwards in August 2011. ·          SignalR is an asynchronous signaling framework to help build real-time, multi-user interactive web applications. ·          Real time means connection and conversation happens in real time, for e.g. chat server. ·          It is built on top of ASP.NET (server side) and a JavaScript library (on the client side) that enables clients (browser) and server (ASP.NET based) components to have a bidirectional conversation. ·      ...