original_string: public function publish(Message $message)
      {
          if (!$this->isConnected) {
              return new RejectedPromise(new \LogicException('The client is not connected.'));
          }
  
          return $this->startFlow(new OutgoingPublishFlow($message, $this->identifierGenerator));
      }
code: public function publish(Message $message)
      {
          if (!$this->isConnected) {
              return new RejectedPromise(new \LogicException('The client is not connected.'));
          }
  
          return $this->startFlow(new OutgoingPublishFlow($message, $this->identifierGenerator));
      }
code_tokens: public function publish ( Message $ message ) { if ( ! $ this -> isConnected ) { return new RejectedPromise ( new \ LogicException ( 'The client is not connected.' ) ) ; } return $ this -> startFlow ( new OutgoingPublishFlow ( $ message , $ this -> identifierGenerator ) ) ; }
docstring: Publishes a message.
  
  @param Message $message
  
  @return ExtendedPromiseInterface
docstring_tokens: Publishes a message .