HomeToolsAbout

Websocket

What is it

Websocket is a connection mechanism between arbitrary number of clients.

  • WebSockets use a persistent TCP connection for data transfer.
  • TCP is what ensures reliability and order.

The connection is facilitated by a server which is located at the website that established the connection between the clients.

  • The server acts as a relay, enabling communication between the two browsers.

This server would determine the state of the websocket connection.

  • The state would include information like the websocket connection state like open/closed/connecting, active connections (e.g. sessions or socket object), and metadata (userID, session info).

The state of the data is stored in the respective client browsers.

AboutContact