Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: GUI with HTTP::Daemon

by bbfu (Curate)
on Dec 20, 2004 at 00:18 UTC ( #416085=note: print w/ replies, xml ) Need Help??


in reply to Re^2: GUI with HTTP::Daemon
in thread GUI with HTTP::Daemon

Ah, that may well be the case. I thought that the browser kept it open until the site was left or the window closed but I can certainly see how it might make sense to close it when done rendering. Oh well.

Hrm. If the browser does indeed close the connection after rendering the page, what about opening your own connection manually via javascript? Are javascript sockets automatically closed when the page is closed / unloaded? I would think they would be, so that means you could perhaps simply open a connection to a "keep alive" server, stick it in a globally scoped variable, and then just forget about it. I haven't done enough with javascript sockets to know if this is feasible. Alternatively, you could perhaps use a hidden frame that never finishes rendering to accomplish the same effect.

bbfu
Black flowers blossom
Fearless on my breath


Comment on Re^3: GUI with HTTP::Daemon
Re^4: GUI with HTTP::Daemon
by The Mad Hatter (Priest) on Mar 25, 2005 at 23:52 UTC
    With the growing ubiquity of the XMLHttpRequest object in browsers now, you could have the app ping the server with requests every so often and have the server watch for this heartbeat to die.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://416085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-10-01 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (3 votes), past polls