Avatar

Level 2

After relogin, CollectionNode doesn't fire Sync event.

_collectionVacantUsers = new CollectionNode();
_collectionVacantUsers.sharedID = "VacantUsers";
_collectionVacantUsers.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSyncCollectionNode);
_collectionVacantUsers.subscribe();

Event listener:

private function onSyncCollectionNode(e : CollectionNodeEvent) : void {
     if (_collectionVacantUsers.isSynchronized) {
          CONFIG::DEBUG {
               MonsterDebugger.trace(this, "VacantUsers synced and ready to use", "", "", DebugColors.SERVICE);
          }

          ...

     }
}