What is the difference between server sent events and Websockets in html5?
Answer»
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.