[plt-scheme] Restart Web-server

From: YC (yinso.chen at gmail.com)
Date: Wed Nov 4 22:52:17 EST 2009

Hi Jasper -

I think you mean auto/event-driven browser refresh rather than restart the
web server.

There is something called the World framework in PLT that appears to handle
such needs - IIRC it works with Flash, but I never used it and don't know
how it works - others would have to chime in.

To do this on your own you can use either use the meta refresh technique, or
you can use some sort of ajax/comet to have the server notify the client to
refresh the pages.

http://en.wikipedia.org/wiki/Meta_refresh - although this is considered
obsolete by standards it is supported by all major browsers.  The meta
refresh happens with or without events occuring on the server-side.

http://en.wikipedia.org/wiki/Comet_%28programming%29 - this occurs only when
an event happened, but there is a lot more work involved.

You can also do this with Flash/Flex, which has its own dev model.

Cheers,
yc

On Tue, Nov 3, 2009 at 11:10 AM, Japus <jasper.maes at gmail.com> wrote:

> Hello
>
> I'm imlementing an online game, Stratego and for that I use the PLT
> web-server. Everything goes well but I'm stuck trying to find out how
> I can force the browser to reload the servlet.
> An example:
> Player 1 is able to move a pawn and in the meanwhile Player 2 can't
> (which is obvious)
> When Player 1 is done, Player 2 can make a move but before he can do
> that he has to manually reload his browser. And that's what I'm trying
> to do automatically using some kind of variable and a controlling
> procedure that determines which browser should be refreshed.
>
> Thanks
>
> Jasper
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091104/e0098a56/attachment.html>

Posted on the users mailing list.