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

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu Oct 6 13:57:51 EDT 2016

Separate client mean for me different people. And if collaboration is not
involved, then each person should have its own process.

For your use case, it seems that's the same person that open several tabs
but connect to the same process which is totally fine.

Which mean in your use case, on the "unload" of your tab (js side), you
should have a callback that will let the server know which view should be
removed assuming that: "a view from one tab is not used in another tab".

On Thu, Oct 6, 2016 at 11:49 AM, Dan Lipsa <dan.lipsa at kitware.com> wrote:

> 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/afb147f2/attachment.html>

More information about the vtkusers mailing list