What is WebSocket Protocol ?

 Posted by Rajkatie on 5/24/2012 | Category: ASP.NET Interview questions | Views: 1983 | Points: 40

Current HTTP protocol isn’t designed to be a real-time medium means modern web applications use classic polling solutions(via Ajax) to give the impression of continuous feel.

Polling is a good solution, even though it might suffer from client-to-server and server-to-client latency.

So, we can overcome a structural limitation of the HTTP protocol using WebSocket protocol. It enables bidirectional communication between Web applications and Web servers over a single TCP socket.

It also make possible for a Web application hosted in a browser to stay connected with a Web endpoint all the time while incurring minimal costs such as pressure on the server, memory and resource consumption.

Source: MSDN | | Alert Moderator 

Comments or Responses

Login to post response