code: public void disconnect() throws IOException {
          if (currentSession != null && currentSession.isOpen()) {
              synchronized (currentSession) {
                  this.currentSession.close(new CloseReason(
                          CloseReason.CloseCodes.NORMAL_CLOSURE,
                          RTMClient.class.getCanonicalName() + " did it"
                  ));
              }
          }
      }
docs: Disconnects from the wss endpoint.
  After calling this method, calling #connect() doesn't work.
  You need to call #reconnect() or instantiate a new RTMClient instead.