HandshakeController handshakeController = new HandshakeController(cisClient, callback);
cisClient.addClientStateListener(handshakeController);
cisClient.addMessageListener(handshakeController, GameVersionMessage.class, GameInformationMessage.class,
AuthorizeMessage.class);
cisClient.addMessageListener(this, UserDataMessage.class);
gameApp.addGameDestroyCallback(new IGameDestroyCallback() {
@Override
public void destroy() {
cisClient.close();
}
});