Question · JavaScript and React course · Module 10: React Ecosystem and Future

Server-Sent Events vs WebSocket

How do Server-Sent Events (SSE) differ from WebSocket?

Answer options

  • SSE supports only a one-directional data stream from server to client, while WebSocket is bidirectional
  • There is no difference - SSE and WebSocket are the same technology
  • SSE is newer and faster than WebSocket in all cases
  • SSE requires a special protocol, while WebSocket works over HTTP

You can check the correct answer by solving this task in the CodeWorlds game.