WebSockets - Implementation


Advertisements


Web Sockets occupy a key role not only in the web but also in the mobile industry. The importance of Web Sockets is given below.

  • Web Sockets as the name indicates, are related to the web. Web consists of a bunch of techniques for some browsers; it is a broad communication platform for vast number of devices, including desktop computers, laptops, tablets and smart phones.

  • HTML5 app that utilizes Web Sockets will work on any HTML5 enabled web browser.

  • Web socket is supported in the mainstream operating systems. All key players in the mobile industry provide Web Socket APIs in own native apps.

  • Web sockets are said to be a full duplex communication. The approach of Web Sockets works well for certain categories of web application such as chat room, where the updates from client as well as server are shared simultaneously.

Web Socket

Web Sockets, a part of the HTML5 specification, allow full duplex communication between web pages and a remote host. The protocol is designed to achieve the following benefits, which can be considered as the key points −

  • Reduce unnecessary network traffic and latency using full duplex through a single connection (instead of two).

  • Streaming through proxies and firewalls, with the support of upstream and downstream communication simultaneously.



Advertisements