Web Socket
Everything on SkillVeris tagged Web Socket — collected across the glossary, study notes, blog, and cheat sheets.
16 resources across 3 libraries
Study Notes(11)
Authenticating WebSocket Connections
Learn how to securely authenticate long-lived WebSocket connections, including handshake-time token validation, per-message authorization, and common security…
Building a WebSocket Server with Node.js
Learn how to stand up a production-ready WebSocket server in Node.js using the `ws` library, from the handshake through broadcasting and horizontal scaling.
Cross-Site WebSocket Hijacking
How attackers exploit the lack of same-origin enforcement on WebSocket handshakes, and the defenses that stop them.
Debugging WebSocket Connections
Practical techniques for diagnosing failed handshakes, dropped connections, and mysterious silent disconnects in WebSocket-based applications.
Opening and Closing Connections
How a WebSocket connection is established through the HTTP upgrade handshake and gracefully terminated using the closing handshake.
Rate Limiting WebSocket Connections
Strategies for throttling connection attempts and message throughput to protect WebSocket servers from abuse and resource exhaustion.
The WebSocket Handshake
A step-by-step look at how a WebSocket connection is established, from the initial HTTP Upgrade request to the server's 101 Switching Protocols response.
Validating WebSocket Messages
Techniques for safely parsing, validating, and routing untrusted WebSocket message payloads to prevent crashes and injection attacks.
WebSocket Frames Explained
A look under the hood at how WebSocket messages are broken into binary frames, including opcodes, masking, fragmentation, and control frames.
WebSocket Security Basics
Foundational security considerations for WebSocket connections, from handshake origin checks to authentication and secure transport.
WebSockets in the Browser
A practical guide to the native browser WebSocket API — connecting, sending and receiving messages, handling reconnection, and working with binary data efficie…
Cheat Sheets(1)
Interview Questions(4)
What is the WebSocket Protocol?
WebSocket is a protocol that upgrades a single HTTP connection into a persistent, full-duplex TCP channel, allowing a client and server to send messages to eac…
HTTP vs WebSocket: What is the Difference?
HTTP is a stateless, request/response protocol where the client always initiates and the connection typically closes after each exchange, while WebSocket upgra…
How Would You Design a WhatsApp-Style Chat System?
A WhatsApp-style chat system is built around persistent WebSocket connections held open by connection-gateway servers, a message service that durably stores an…
What is a WebSocket?
A WebSocket is a communication protocol that opens a single, persistent, full-duplex connection between client and server over TCP, letting either side send me…