Hello, I had a look online about server-send events (SSE) and web-sockets. For my current project, I was able to implement web socket, everything working well so far. But then I came across the SSE and was curious about it. I read that whatever SSE can do, web socket can also do it, so web socket is kind of a subset of SSE?.
Now the thing is I read that SSE is one way communication only from server to client. But if we think carefully, we can make it behaves like a 2 way communication, no? For instance, client-side sends a POST message, server receives it and push back to browser?
With web socket we would do the same just with the message eventListener?
Can someone explain what is the difference here and if possible include real-world application of when SSE is better than web socket or vice-versa pls.