• Websockets and SSE (Server-Sent Events) are each successful of pushing records to browsers, however, they are no longer competing for technologies.
  • Websockets connections can both ship statistics to the browser and acquire information from the browser. A true example of an application that ought to use WebSockets is a chat application.
  • SSE connections can solely push statistics to the browser. Online inventory prices or twitters updating timeline or feed are excellent examples of a utility that ought to benefit from SSE.
  • In exercise considering the fact that the whole lot that can be executed with SSE can also be executed with Websockets, Websockets is getting a lot greater attention and love, and many more browsers help Websockets than SSE.
BY Best Interview Question ON 19 Dec 2019