SignalR Online Counter Sample

 

SignalR is long waiting Web technology for building real time ASP.NET web applications. SignalR is open source project which simplifies pretty complicated task of creating bidirectional communication between clients and Server.  SignalR is founded on top of the WebSockets, as well as other similar technologies.

As you probably know WebSockets introduce a new way to communicates between server to clients, and it is specified by HTML5 API specification. When it is available SignalR will use this technology, otherwise it will use what is supported by your system. SignalR also provides high-level API for server communication to client RPC (call JavaScript functions in clients’ browsers from server-side .NET code) in ASP.NET application, as well as adding useful hooks for connection management, e.g. connect/disconnect events, grouping connections, authorization. More information about SignalR you can find on official web site for SignalR.

For this post I have implemented very simple SignalR Web Application which counts how many users are online, so called Online Counter. Online Counter is very popular component for the web.

So let’s start with the implementation. More...

 


Posted Jan 29 2013, 07:39 AM by Bahrudin
Filed under: , , , , ,

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
developers.de is a .Net Community Blog powered by daenet GmbH.