mP, thanks for your quick reply.
I need to keep track of the connections on the server. The reason for
that is that i have another windows application that is listening to
server events and if something interesting happens is required to open
browser and login to web application, but only if user is not already
logged in on the same computer. I thought that the most reliable way
is to check if rocket connection is opened for that computer. I am
thinking of keeping a static map on the server that links computer
name (or ipaddress) to the last payload time stamp. The time stamp
will be updated everytime poll() method is called and can be used to
make a decision on whether there is active connection between the
given computer browser and server.
Does this seem sensible to you?
Inna
On 14 Oct, 03:55, "Miroslav Pokorny" <
miroslav.poko...@gmail.com>
wrote:
> Hi Inna
>
> You will need to keep track of these things yourself. One could just have a
> singleton or static variable on the client and check before creating a new
> session.
>