I'm trying to implement the chat web sdk on our website. Documentation found here: https://api.zopim.com/web-sdk
How should I handle expired tokens and session disconnects? There isn't any clear documentation. My users potentially have the website open for hours at a time and the chat sdk lifecycle is unclear.
I do perform a zChat.init during the initial loading. I'm also catching the connection_update event and handle the 'closed' scenario. Initially, I wanted to perform a new zChat.init with a brand new JWT token but it's not allowed (you can only call init once). Currently, I perform a zChat.reconnect which works but it isn't using a new JWT token.
Thanks
Ronny