web sockets & server sent envents
-
Server-Sent Events (SSE) uses the standard HTTP protocol.
- It's a one-way communication channel built on top of HTTP, where the client initiates the request, and the server keeps the connection open to continuously push data to the client.
-
WebSockets uses its own dedicated protocol, the WebSocket Protocol, which is established through an initial HTTP upgrade handshake.
- After the handshake, the connection switches (upgrades) from HTTP to the full-duplex WebSocket Protocol, which allows for two-way (bi-directional) communication.
I've implemented and worked on notification systems with web sockets a couple of times but would like to have deeper knowledge and document here.