Exam-style question
Try this first
Which statement best describes a WebSocket connection?.
- A.It is a persistent, full-duplex connection over TCP
- B.It permits data to travel only from the server to the client
- C.It is used only to store data in a database
- D.It replaces HTML files in a web application
Model answer
What a good answer should say
- It is a persistent, full-duplex connection over TCP
Explanation
Why this works
The WebSocket specification establishes a persistent connection between a web browser and a server over TCP. Full-duplex communication allows both sides to send data at any time.
Common mistake
No common mistake is linked to this question yet.
