🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Long polling cannot use HTTP
  2. B.It keeps opening new requests and is clumsy compared with one persistent two-way connection
  3. C.It is encrypted and WebSockets are not
  4. 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 →