Websocket
is a connection mechanism between arbitrary number of clients.
The connection is facilitated by a server which is located at the website that established the connection between the clients.
This server would determine the state of the websocket connection.
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.