WebSocket

Real-time web channel

WebSocket is a communication protocol that enables persistent, two-way data exchange between a web browser and server.

Unlike traditional web requests where the browser asks and the server responds, a WebSocket connection stays open, allowing either side to send messages at any time: The chat app uses WebSockets so messages appear instantly.

This makes WebSockets essential for real-time applications—chat, live feeds, multiplayer games, collaborative editing.

protocol

TCP

Connection-oriented network protocol

  • handshakeMutual palm-gripping gesture
  • URIResource identification string
  • HTTPWeb data transmission standard

upgrade · header · frame · endpoint · connection · persistent · full-duplex · client-server · TLS · port

architecture

API

Software communication standard

  • clientOne who hires professionals
  • serverOne who attends tables
  • sessionScheduled time for activity

proxy · gateway · microservices · channel · room · namespace · scalability · heartbeat · reconnection · backoff

messaging

payload

Carried freight or charge

  • frameSupporting outer structure
  • binaryConsisting of two parts
  • textWritten or printed words

message · send · receive · broadcast · push · event · handler · listener · callback · JSON

realtime

chat

Informal verbal exchange

alerts · ticker · presence · synchronization · multiplayer · dashboard · feed · streaming · low-latency · bidirectional

security

TLS

Network encryption protocol

authorization · token · secure · certificate · vulnerability · injection · rate-limiting

Opposites
communication protocol pattern

WebSocketHTTP

Web data transmission standard

REST · AJAX · half-duplex

connection state

WebSocketUDP

Connectionless transmission standard

connectionless

data flow timing

WebSocketpolling

Systematic opinion gathering

page reload

Family

web, webs, socket, webbed, webbing, sockets, webcam, socketing, webmail

Familiarity
Top 1,000,000
Profile
Used worldwide · Abstract · Rated G