Abstract
After reading the previous chapter, you are ready to create a game server and provide a decent infrastructure around it with templates, error handling, and logging. To build a real multiplayer application, however, a server is not enough. The second essential part of the networking architecture is the client. The goal of this chapter is to provide a good level of knowledge of networking from the client’s perspective. In order to do that, we will learn the following:
-
How to load the data from the server without having to reload a web page
-
A newer version of the XMLHttpRequest object called XHR Level 2
-
How to load binary data from the server and parse it on the client side
-
The limitations of mobile devices
-
A few things about reverse Ajax and the options available to implement real-time client-server communication
-
The definition of a transport and the types of trade-ofts involved when a developer chooses a transport for his game
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Juriy Bura and Paul Coates
About this chapter
Cite this chapter
Bura, J. (2012). Talking to the Server. In: Pro Android Web Game Apps. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3820-1_11
Download citation
DOI: https://doi.org/10.1007/978-1-4302-3820-1_11
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-3819-5
Online ISBN: 978-1-4302-3820-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books