Question: what is the difference between server-sent events (sses) and websockets in html5?
Answer: By far the biggest difference between both technologies is that WebSockets are full-duplex, bidirectional communication between client and server, whereas SSEs are mono-directional. SSEs come with a set of features that WebSockets lack by design, such as automatic reconnection, event IDs and sending arbitrary events.