How to find out if a collab-based object has been fully loaded after session preparation

6 views
Skip to first unread message

nvd_ai

unread,
Jul 1, 2011, 2:33:48 PM7/1/11
to opencoweb
Hi,

I need a way to test if a collab object (say a shopping list) has been
loaded from the server after session preparation.

At the moment, I am subscribing a 'setFullState' function to
subscribeStateResponse event. But the problem is that in case there is
only one session, it does not get called. In other words,
subscribeStateResponse and subscribeStateRequest are triggered only
for 2 sessions and more. What is the best way to handle this for the
very first session?

Navid

Peter Parente

unread,
Jul 1, 2011, 2:43:59 PM7/1/11
to open...@googlegroups.com
Navid:

I think you want the ready callback on the collab interface:

http://opencoweb.org/ocwdocs/js/collab.html#CollabInterface.subscribeReady
Reply all
Reply to author
Forward
0 new messages