What is the main benefit of using WebSockets over HTTP polling for real-time features?
-
A
WebSockets use less CPU on the client device
-
B
WebSockets provide a persistent, full-duplex channel eliminating repeated request overhead
-
C
WebSockets are always encrypted by default unlike HTTP
-
D
WebSockets bypass browser same-origin restrictions