What are WebSockets?
The WebSocket specification—developed as part of the HTML5 initiative —introduced the WebSocket JavaScript interface, which defines a full-duplex single socket connection over which messages can be sent between client and server. The WebSocket standard attempts to simplify much of the complexity around bi-directional web communication and connection management.
WebSockets represent an alternative to Comet and Ajax. However, each technology has its own unique capabilities. Learn how these technologies vary so you can make the right choice.