The WebSocket JavaScript API provides a simple API for bi-directional communication with web servers. The WebSocket network protocol enables low overhead bi-directional communication with web servers over a persistent TCP connection.
Docs: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket