c# - Updating chat whenever it updates -


i scripted live chat updates asynchronously asp:timer every 5000 m/s (5s). i'd instead make update in everyone's computer whenever updates instead of waiting 5 seconds every time. skype , facebook do. how can this?

realtime updates server client achieved using web sockets. new transport available realtime updates. earlier methods long polling run problems or lot of handling in code run stable environment.

you use third party library called signalr uses web sockets in background , provides backward compatibility earlier methods long polling. can read more on technology here http://www.asp.net/signalr/overview/getting-started/introduction-to-signalr


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -