[jdev] Protocol customization guidelines
    Anton Belyaev 
    anton.belyaev at gmail.com
       
    Fri Dec 12 17:47:09 CST 2008
    
    
  
Hello,
I am writing a multi-player graphical game which utilizes XMPP for
client-server messaging.
How do I represent game events in the XMPP?
Of course, I could just use something <message><body>shot: player(1)
-> player(2)</body></message>. Just include items, specific to my game
in ordinary message's body and parse them at client/server. But I
guess the right way is to use custom messages, like
<message><event><shot from='1' to='2'/></event></message>. Are there
any guidelines or best practices on how to do this? Tags, namespaces,
etc.
Thannks.
    
    
More information about the JDev
mailing list