[vtkusers] vtkWeb - callback when the client disconnects (on reload)

Dan Lipsa dan.lipsa at kitware.com
Thu Oct 6 13:49:33 EDT 2016


I am not sure. Does a separate tab count as a separate client?
Or separate clients are only considered connections comings from separate
computers?

I notice that reload or closing a tab in the browser does not close the
open windows on the server - I think it should. I am trying to fix this
case.

On Thu, Oct 6, 2016 at 1:41 PM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> Don't you have one process per client? If so, the server should shutdown
> automatically, unless the client notified the server that he was leaving
> for good in which case the server should stop almost immediately.
>
>
>
> On Thu, Oct 6, 2016 at 11:37 AM, Dan Lipsa <dan.lipsa at kitware.com> wrote:
>
>> Hi Seb and all,
>>
>> Is there a callback I can provide on the server that will be called when
>> the client disconnects?
>> I need to close all windows opened by a client.
>>
>> Related to this, is there an ID assigned to a client that I can use to
>> associate open windows with certain clients? This way, I can only close
>> windows only for a client that disconnected.
>>
>> Thanks,
>> Dan
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161006/bf1e4947/attachment.html>


More information about the vtkusers mailing list