How Does ESPN’s Game cast work?

338 views

Without telling the page to update it keeps sending me more and more data. Do all webpages have the ability to do this and they don’t? How does their system tell my device to display something new?

In: 0

Anonymous 0 Comments

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.

You are viewing 1 out of 1 answers, click here to view all answers.