src/SimpleStomp.php
public function subscribe($destination, $subscriptionId = null, $ack = 'auto', $selector = null, array $header = [])
    {
        return $this->client->sendFrame(
            $this->getProtocol()->getSubscribeFrame($destination, $subscriptionId, $ack, $selector)->addHeaders($header)
        );
    }
public function subscribe($destination, $subscriptionId = null, $ack = 'auto', $selector = null, array $header = [])
    {
        return $this->client->sendFrame(
            $this->getProtocol()->getSubscribeFrame($destination, $subscriptionId, $ack, $selector)->addHeaders($header)
        );
    }
public function subscribe ( $ destination , $ subscriptionId = null , $ ack = 'auto' , $ selector = null , array $ header = [ ] ) { return $ this -> client -> sendFrame ( $ this -> getProtocol ( ) -> getSubscribeFrame ( $ destination , $ subscriptionId , $ ack , $ selector ) -> addHeaders ( $ header ) ) ; }
Register to listen to a given destination

@param string $destination Destination queue
@param null $subscriptionId
@param string $ack
@param string $selector
@param array $header
@return bool
Register to listen to a given destination