Definition:
A WebSocket is a bidirectional communication protocol that allows a client web application to establish a persistent, low-latency, bi-directional communication channel with a server over the web.
Related Terms:
A single, unidirection channel of communication is called a Connection.
Messaging between a WebSocket and a client is typically sent in frames
A WebSocket connection is defined by the Handshake, which establishes the connection.
A technique used to prevent data from being lost while disconnected from the server, often implemented using Message IDs.
A WebSocket has a specific Heartbeat Interval, usually around one minute by default, measured in seconds, at which rate data must be exchanged between client and server.
WebSocket connections can also utilize Credentials authentication
Multiplexing is when multiple WebSockets are used under the same HTTP connection in order to transport different types of WebSockets over HTTP channels
A WebSocket uses a standard HTTP 101 Switching Protocol status code, with the SWitches Protocol also specifying its upgrade.