WebSockets is a protocol providing full-duplex communication channels over a single TCP connection between a client and a server. It is widely used for real-time web applications.

Semantic Classification

Content

  • WebSockets establishes a persistent connection through an initial HTTP handshake, after which both client and server can send messages at any time without repeated request and response cycles. This reduces latency compared with polling approaches.
  • The protocol is used for chat applications, live dashboards, collaborative editing, and other cases where the server needs to push updates to the client. It is supported natively by web browsers and by libraries across many programming languages.

Provenance