How is WebSocket different from conventional communication models

WebSocket is based on HTML 5 server Push Technology. The communication request is initiated by the publisher or central server following a publish/subscribe model. This is unlike the request/response model that HTTP relies on, which has drawbacks such as request time-out and browser refresh. In the case of WebSocket, a client subscribes to various information channels. If new content is available in the channel, it is pushed to the clients. This method has the following advantages:

  • Simultaneous bi-directional communication
  • Lesser browser reloads
  • Ease in creating applications that handle real-time data
Adobe logo

Sign in to your account