Vidyalelo
JavaScript · Q5

Sockets

Programming · JavaScript · question 5

Q5

How does the client and the server communicate following the rules defined by the WebSocket protocol?

A.
Long-lived TCP Socket
Answer
B.
Short-lived TCP Socket
C.
UDP Socket
D.
HTTP Socket

Answer: Option A

Solution

Answer: Option A
Solution:
The client and server communicate over a long-lived TCP socket following rules defined by the WebSocket protocol.