educative.io

Why cannot server-sent-events be used in place of Long Polling or WebSockets?

How will clients maintain an open connection with the server? The answer you mentioned is Long Polling or WebSocket. Why not Server Send Events be used as its more efficient than long polling?

Since server sent events are not bi-directional nor full-duplex, web sockets are preferred.

1 Like