Regular |
 |
Joined: Tue Jan 06, 2004 3:32 pm Posts: 80 Location: Munich, Germany
|
Hello everyone,
I am in the process of developing a web application for turn based games using Hibernate and Servlets.
The display page of a game should update automatically when a player has done his turn, without the client periodically refreshing the web page (polling).
I am thinking about using the onUpdate lifecycle callback of my Game instance for this. If a client requests a specific "wait for update"-resource, the request is blocked until either an update or a timeout occurs.
Has anyone done this? Are there any best-practices?
Regards,
Andreas
|
|