WebSocket

A bidirectional, full-duplex communication protocol over a single TCP connection, defined in RFC 6455. WebSocket upgrades from HTTP and is widely used for chat, collaborative editing, live dashboards, and game servers.

API entry from apis.yml

apis.yml Raw ↑
aid: communication-protocols:websocket
name: WebSocket
description: A bidirectional, full-duplex communication protocol over a single TCP connection, defined
  in RFC 6455. WebSocket upgrades from HTTP and is widely used for chat, collaborative editing, live dashboards,
  and game servers.
humanURL: https://www.rfc-editor.org/rfc/rfc6455
baseURL: https://www.rfc-editor.org
tags:
- Bidirectional
- IETF
- Real-Time
- Web
- WebSocket
properties:
- type: Specification
  url: https://www.rfc-editor.org/rfc/rfc6455
- type: Documentation
  url: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
x-features:
- HTTP upgrade handshake to TCP-level full-duplex frames
- Text and binary frame types
- Subprotocol negotiation (e.g. graphql-ws, mqtt)
- Native support in browsers and most server runtimes
x-useCases:
- Real-time chat and collaboration
- Live tickers and dashboards
- GraphQL subscription transport
- Multiplayer games and signaling