     {
         super.clientDidLogon(event);
 
-        var clientObj :ClientObject = event.getClient().getClientObject();
-        if (clientObj is ClusteredBodyObject) {
-            // listen to the client object
-            clientObj.addListener(this);
-            _self = (clientObj as ClusteredBodyObject);
+        var body :BodyObject = CrowdClient(event.getClient()).bodyOf();
+        if (body is ClusteredBodyObject) {
+            // listen to the body
+            body.addListener(this);
+            _self = (body as ClusteredBodyObject);
 
             // we may need to subscribe to a cluster due to session resumption
             maybeUpdateCluster();

// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

package com.threerings.whirled.spot.client {

import com.threerings.util.Log;
import com.threerings.util.ResultListener;


    {
        super.clientObjectDidChange(event);

        var body :BodyObject = CrowdClient(event.getClient()).bodyOf();
        if (body is ClusteredBodyObject) {
            // listen to the body
            body.addListener(this);
            _self = (body as ClusteredBodyObject);
        }
    }

    // documentation inherited
