Exercises
Explore how WebSockets enable persistent, bidirectional communication between browsers and servers. This quiz covers the opening handshake, secure connections, browser events, message flow, backpressure, close codes, security checks, and horizontal scaling. Questions combine practical scenarios with protocol concepts to assess skills useful when building real-time chats, dashboards, games, and notification systems.
Answer the questions below and check the explanation for each answer.
0/5 answered
Auto audio on: the next questions will be read aloud when you click Continue.
The server appends the WebSocket GUID to the client's key, applies SHA-1, and Base64-encodes the result. This proves that it understood the upgrade request.
Status 101 Switching Protocols confirms that the server accepts the upgrade from HTTP to the WebSocket protocol.
When a browser WebSocket has binaryType set to blob, received binary messages are exposed as Blob objects through event.data.
A growing bufferedAmount indicates that data is being queued faster than it can be transmitted. Throttling or pausing producers helps prevent excessive memory use.
TLS protects data in transit but does not establish whether a requesting page is trusted. Servers should validate Origin and enforce authentication and authorization.
Video Courses
recommended
Ideal for beginners
Ideal for beginners
recommended
Ideal for beginners
Ideal for beginners
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks