๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is WebSocket?

A communication protocol that enables full-duplex, real-time data exchange between a browser and server over a single connection.

WebSockets provide persistent, bidirectional communication between client and server. Unlike HTTP (request-response), WebSockets allow the server to push data to clients instantly without polling.

Use cases include chat applications, live dashboards, gaming, collaborative editing, and real-time notifications. The connection starts as an HTTP upgrade request, then switches to the WebSocket protocol (ws:// or wss://).

Related Terms

HTTP/2
The second major version of HTTP that improves performance through multiplexing, header compression, and server push.
SPA (Single Page Application)
A web application that loads a single HTML page and dynamically updates content without full page reloads.
GraphQL
A query language for APIs that lets clients request exactly the data they need, reducing over-fetching and under-fetching.
JSON
JavaScript Object Notation โ€” a lightweight data interchange format that is easy for humans to read and machines to parse.
Middleware
Software that sits between the request and response in a web application, performing processing like authentication or logging.
CORS Preflight
An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.
View All Web Development Terms โ†’