Node.js · Middle · Question 69 of 75

When are Server-Sent Events (SSE) a better choice than WebSockets?

Explanation

SSE uses a normal HTTP response with Content-Type: text/event-stream. The browser's EventSource reconnects automatically. WebSockets are full duplex.

Further reading

Problem with a question

Node.js · Middle · question 69

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz