cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
338
Views
1
Helpful
1
Replies

storing jabber client session

romaingautier
Level 1
Level 1

Hi,

I am studying the jabber sdk integration within a web application.

My issue is that each time the user is browsing the application, my jabber connection is lost, I did not manage to keep track of it.

I tried to stringify the jabberwerx.Client object to store it wihin the sessionStorage with no success.

Best  regards,

Romain

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

This is a known limitation of the architecture: the browser will clean up the Javascript context when the user navigates away from the page, which destroys the Jabber plugin instance.

Workarounds can attempt to maintain the page/Javascript context as long as possible: using iFrames or Ajax to update the UI without navigating, launching a popup window for the Jabber telephony UI, etc. Some developers have successfully managed the Jabber code and plugin in a Chrome extension, which stays active for the lifetime of the browser.