O'Reilly logo

WebGL Game Development by Sumeet Arora

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communicating in real time

Real-time communication is a problem that web developers have been trying to solve for a very long time. The problem is that the client can ping the web server, but the server cannot contact the client. The reason is that the client requests a web page, the server sends the response and the socket is closed. Although the HTTP 1.1 uses persistent connections for multiple requests response, it times out after a specified time. The directive behind a persistent connection is HTTP keep-alive.

This posed a problem in solving real-time communication issues using web servers and HTTP protocols. For example, in a multiplayer game, the information related to the user moving its character needs to be broadcast to all users playing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required