<div dir="ltr"><div>Separate client mean for me different people. And if collaboration is not involved, then each person should have its own process.</div><div><br></div><div>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.</div><div><br></div><div>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".</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 11:49 AM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am not sure. Does a separate tab count as a separate client?<div>Or separate clients are only considered connections comings from separate computers?<br><div><br></div><div>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.</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 1:41 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 11:37 AM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Seb and all,<div><br></div><div>Is there a callback I can provide on the server that will be called when the client disconnects?</div><div>I need to close all windows opened by a client.</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Dan</div><div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>