public void onConnect(RespokeSignalingChannel sender, String endpointID, String connectionID) {
        connectionInProgress = false;
        reconnectCount = 0;
        localEndpointID = endpointID;
        localConnectionID = connectionID;

        Respoke.sharedInstance().clientConnected(this);

        // Try to set the presence to the initial or last set state
        setPresence(presence, new Respoke.TaskCompletionListener() {
            @Override
            public void onSuccess() {
                // do nothing
            }

            @Override
            public void onError(String errorMessage) {
                // do nothing
            }
        });

        new Handler(Looper.getMainLooper()).post(new Runnable() {
            @Override
            public void run() {
                Listener listener = listenerReference.get();
                if (null != listener) {
                    listener.onConnect(RespokeClient.this);
                }
            }
        });
    }
public void onConnect ( RespokeSignalingChannel sender , String endpointID , String connectionID ) { connectionInProgress = false ; reconnectCount = 0 ; localEndpointID = endpointID ; localConnectionID = connectionID ; Respoke . sharedInstance ( ) . clientConnected ( this ) ; setPresence ( presence , new Respoke . TaskCompletionListener ( ) { @ Override public void onSuccess ( ) { } @ Override public void onError ( String errorMessage ) { } } ) ; new Handler ( Looper . getMainLooper ( ) ) . post ( new Runnable ( ) { @ Override public void run ( ) { Listener listener = listenerReference . get ( ) ; if ( null != listener ) { listener . onConnect ( RespokeClient . this ) ; } } } ) ; }
RespokeSignalingChannelListener methods