What makes WebSockets a promising protocol for asynchronous messaging on the web?

WebSockets, part of the HTML5 specification, enables two-way communication between web pages and a remote host. The protocol is designed to achieve the following benefits:

  • Reduce unnecessary network traffic and latency using full-duplex through a single connection (instead of two)
  • Streaming through proxies and firewalls, supporting simultaneously upstream and downstream communication
  • Backward compatible with the pre-WebSocket world by switching from an HTTP connection to WebSockets

Make sure to check out the current state of WebSockets.