Home / Glossary / Websocket

Websocket

WebSocket is a communication protocol that enables full-duplex, or two-way, communication between a client and a server. It is a standardized way to provide real-time, bidirectional, low-latency communication over the web.

WebSocket is designed to be used within web browsers and web servers, but it can be used by any client or server application. The WebSocket protocol makes use of the existing HTTP infrastructure and ports; as such, it is possible to run WebSocket applications alongside existing HTTP applications with no conflicts.

A WebSocket connection is established through a process known as a handshake. This handshake is a simple, two-way exchange of information between the client and the server that establishes the parameters of the connection. Once the handshake is complete, the client and server can send data back and forth as needed, without any further handshaking.

The WebSocket protocol has a number of advantages over existing technologies. First, it is a standardized protocol with a well-defined API. This means that it is easier to develop applications that use WebSocket, and that these applications will be more portable. Second, the WebSocket protocol is designed to be used over a network, which means that it is possible to use WebSocket to build applications that span multiple machines. Finally, the WebSocket protocol is designed to be lightweight and efficient, with a small footprint and low overhead.



27 Dec 2023

Share this glosssary
bannar