code: public boolean isSubscribe() {
      if (message == null) {
        return false;
      }
  
      return (((Request) message).getMethod().equals(Request.SUBSCRIBE));
    }
docs: Indicates if the request method is SUBSCRIBE or not.
  
  @return true if the method is SUBSCRIBE, false otherwise.