Developing the client
One of the cool things about having a server with a known set of expected messages is that the clients can look like anything you can imagine, as long as they send and respond to the expected set of messages. Not every client needs to look alike nor have the same output – for example, there’s no reason we couldn’t have one of our XMPPong players gaming from a terminal window! We will keep our client basic, since we want to demonstrate the use of XMPP rather than get crazy with HTML and CSS, but you are welcome to be as creative as you'd like here. In fact, you could toss in some D3 or even create a client using Unity or any other framework, as long as you can send and receive those XMPP messages.
Recall from the table earlier in this chapter that we need our browser (in this case) to connect to the XMPP-FTW
server and expect, or send, the following events:
- Send a request to the client wishes to connect to a game (outgoing:
playercheckingin
) - Listen for default dimensions...