On Fri, Sep 30, 2011 at 9:00 AM, Andrew McNabb <[email protected]> wrote:

> On Fri, Sep 30, 2011 at 11:44:27AM -0400, Matthew Gardner wrote:
> >
> > How does the server notify players
> > when it is their turn, with the updated state?
>
> I think in these cases that people usually write Javascript code on the
> client that performs a request and waits for a response.  The server
> waits to respond to the request until the appropriate condition is met.


I am pretty sure that on App Engine this would cause the request to time out
so the JavaScript would have to be able to remake the request which is
pretty much the same as polling anyway. I don't know if other services are
like this (I guess that if you own your own server you can set the timeout
to be infinity+1).

For turn based games wouldn't it be sufficient to have the client check for
updates once a minute? This polling could even be used as a sort of switch
where if a move has been made and an update hasn't been requested for x
minutes then send out an email notifying the user of the move.

Joshua.
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to