Try to make a chat program? Poll the message very 5 seconds? refresh or reload the web page using complicated javascript?
I've been spending time to create a chatroom on classic ASP (12 years ago). Refresh client side to get the latest data from other client via a service side script is really a pain. However, it hasn't been easy in ASP.NET, because there hasn't been a decent abstractions for this on server or a client library to talk to.
SignalR - an asynchronous signalling library for ASP.NET that help build real-time multi-user web application!
It is really a MAGIC ! Something you must try and experience it.
Here is the min req:
.Net framework 4.5
If you are using VS2012, you can install the Microsoft ASP.NET SignalR from NuGet. (There is another one called "Microsoft ASP.NET SignalR System.Web" , I haven't try this yet. Not quite sure what are the differences.)
There are number of tutorial available from Mircosoft asp.net website:
http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20
Cool !
No comments:
Post a Comment