WebSockets provide a persistent, full-duplex communication channel between browser and server. Unlike HTTP (request → response), WebSockets allow both sides to send messages at any time. Use cases: chat applications, live notifications, collaborative editing, stock tickers, multiplayer games, and live dashboards. The connection starts as an HTTP upgrade request, then switches to the WebSocket protocol for low-latency bidirectional messaging.
glossary2 min read
WebSockets Explained
WebSockets enable real-time, bidirectional communication between browser and server.
Try these tools
More glossary articles
What is WebP?
WebP is a modern image format by Google offering superior compression. Learn when and how to use WebP images.
What is HEIC?
HEIC is the default photo format on iPhones. Learn what it is, why Apple uses it, and how to convert it.
What is JSON?
JSON (JavaScript Object Notation) is the standard data format for web APIs. Learn the syntax and common uses.
What is Regex?
Regular expressions (regex) are patterns for matching text. Learn the basics and common use cases.