Hello!
I’m writing a mp strategy game. The server is a webapp inside tomcat. It serves mostly webservice calls. The game is not at all realtime, so there is no push from the server. It’s sufficient for the client to poll the server once in a while, depending on the game pace, once every minut might do.
Now, I need an ingame chat. Chat needs to update faster than the game itself. I’m thinking I need to create a parallell (havent decided if it will be in the same jvm as the webapp) server that reads the same database as the server. The chatserver only needs to read the player table for authentication (and then some maybe). The client will connect to this chatserver and authenticate when you log in. After that, from the users perspective, it will work like basic irc, some channels and so on.
Now, how to do this?
- Write it with webservice requests. Make the client poll the server every five seconds or so.
- Write a standalone server that is started in or outside tomcat. Make a irc-like simple protocol.
- Use an existing chat framework. I only know jabber, and jabber is more IM than irc, so it’s no good.
Anyone have any helpful comments?