DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
API Development Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
API Development
Why does a WebSocket start as a regular HTTP request before becoming a persistent connection?
A
It doesn't — WebSockets never involve HTTP at all
B
The connection begins with an HTTP Upgrade handshake, after which the SAME underlying TCP connection is repurposed into a full-duplex WebSocket channel
C
HTTP and WebSockets are completely unrelated protocols with no connection setup relationship
D
WebSockets always require a brand new TCP connection separate from the initial HTTP request
Check Answer