The page opens a bidirectional connection to the server, allowing new data to come in as it becomes available. Think of this as a “tunnel” with two lanes, one used to send data and the other to receive data, simultaneously. As long as the tunnel is open, the page does not have to be refreshed or reloaded. There are “workers” handling the data received, and they can update the page’s contents with new information any time. This technology is called WebSockets and is also used on sites like Facebook, Slack, Coinbase, etc.
Latest Answers