Ivo S Rahov 21.Apr.11 09:05 AM a Web browser Applications development 8.5.1 All Platforms
I'm developing custom AJAX Sametime client using stproxy library only the JS, not the UI.
I use ChatModel for handling the chat. In order to create it I call "stproxy.getChatModel(userId, isIncoming)".
1) If I call it a second time, it returns null. Strange enough, but this is because the model already exist. Is this the desired behavior?
2) To handle 1 - I tried using local cache. But then if I open a second tab, the local cache does not have that record (expected) but even calling stproxy.getChatModel returns null. Is this the desired behavior?
So what is the right approach of using chat models in multiple tab application, where user can chat from each tab (opening distinct browser window as STProxy web application does is not an approach)
And, by the way, why there is such overlapping between ChatModel & stproxy.chat functionality?