code: 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);
                  }
              }
          });
      }
docs: RespokeSignalingChannelListener methods