I am building a poker game via html/php/ajax (and some other stuff) NO-FLASH .
I have little experience in programming games , so i have small question !
assuming ur playing poker , how your browser will know that some player threw a card ?
shall my browser send ajax request to know if somebody made a move ??? or is there anyway to treat ajax->php like a socket ajax<->php ??
I hope someone understands my question , thanks
Depending on the amount of traffic you’ll, face, a good idea is to use a Message Queue server, such as Apache ActiveMQ along with something to allow all browsers to connect to ActiveMQ and receive ‘push’ messages from it, on the lines of Orbited 2 – this one is prepared for changes on the websocket protocol as new reviews are generated (not sure a consensus over the protocol has been reached yet).
The best bet for you is to research a relatively old technology, but not widely used (I mean, when compared to Ajax) that is known both as Comet and Ajax Push.
It’s obvious there are several other implementations, such as APE, and you would probably want to pick the one (whose programming language and/or API) you feel mostly comfortable with.