Question · Vibe coding with Claude Code course · Module 7: LinkedIn clone

Quiz: Server-Sent Events vs WebSocket

How do Server-Sent Events differ from a WebSocket?

Answer options

  • SSE need a separate server and a library, while a WebSocket works in a Route Handler
  • They do not differ, they are two names for the same connection
  • SSE work in one direction, from the server to the browser, and a message from the client goes in a separate request
  • SSE carry only files, and a WebSocket only text

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