Yes - this is not a web2py technology issue (it's just a framework) --- it's a design decision. It depends on how for your use you define "real-time". You might also want to look at some of the things done in pygame - there are some client / server games there.
www.pygame.org On Wed, Feb 25, 2009 at 2:18 AM, Jason Brower <encomp...@gmail.com> wrote: > > I think this is more of an HTML think. But you could run some js in the > background AJAX in particular to query the server if there is a change. > Or perhaps you could make a JS program take called from the server. But > your going to get alot of server load if you just keep refreshing the > page. Try building your site to just take the changes it needs. > Regards, > Jason > On Tue, 2009-02-24 at 23:28 -0800, Cro wrote: > > Hello again. > > I wonder if there is any possibility to call a refresh on the page > > when a certain event on the server occurs. > > > > For example, i have a server for a 'in-browser-game'. It's a real time > > strategy game. (quite improbable, but possible) Now, if the player > > doesn't do anything at all, the browser will refresh automatically to > > show the movement of enemy troops. All the events happen in background > > and when a troop moves, the server needs to call REFRESH and show the > > movement in browser. > > > > Another example : a server for automations. I wrote a few things about > > it in a previous post. While the automation happens, it writes a > > detailed log about everything that happens, but some events happen > > much slower then the others. What i want is to refresh the browser and > > show all previous logs + the new appended line, every time one event > > finishes. I want to refresh the entire log for each event that > > finishes and see the full updated log every time. > > > > For now, i have absolutely no idea how i can do that. > > Any working example could help. > > Thank you in advance. Thank you. > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---