← Quiz: Design a Chat App: all 10 questions
Quiz: Design a Chat App · Question 6 of 10
Why is long polling considered worse than WebSockets for chat?
Why is long polling considered worse than WebSockets for chat?
- A.Long polling cannot use HTTP
- B.It keeps opening new requests and is clumsy compared with one persistent two-way connection
- C.It is encrypted and WebSockets are not
- D.It works only on desktops
Answer & explanation
Correct answer: It keeps opening new requests and is clumsy compared with one persistent two-way connection
WebSockets let both sides send at any time over one open connection.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Chat App quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →