Ivo Rahov 2.May.11 07:20 AM a Web browser Applications development 8.5.1 All Platforms
I'm integrating sametime chat functionality into a web application using the stproxy JS library. The chat goes into DIV-elements (not separate browser windows). User can open several tabs, all of them running the web application, hence the chat.
Since the chat is an integrated part the user can go offline -sign out from the chat, but to remain being signed in the web application.
What is better - calling 'stproxy.login.logout' with parameter (isRealLogout) true or false? Is there something else I have to do?
On one hand I have to perform that action in every tab otherwise the internal state of the stproxy is broken and there are quite problems when I try sign in again.
If I do case 1 ' isRealLogout == true' I have to put that code in try-catch block because there is exception when that action is performed in the other tabs (remember I have logout already from the first tab).
If I use case 2 - it seems that stproxy cannot either handle that case well.
How can I logout gracefully?
(I use server-side notifications to handle offline-online / online-offline change across all tabs)