src/StatefulStomp.php
public function subscribe($destination, $selector = null, $ack = 'auto', array $header = [])
    {
        return $this->state->subscribe($destination, $selector, $ack, $header);
    }
public function subscribe($destination, $selector = null, $ack = 'auto', array $header = [])
    {
        return $this->state->subscribe($destination, $selector, $ack, $header);
    }
public function subscribe ( $ destination , $ selector = null , $ ack = 'auto' , array $ header = [ ] ) { return $ this -> state -> subscribe ( $ destination , $ selector , $ ack , $ header ) ; }
Subscribe to given destination.

Returns the subscriptionId used for this.

@param string $destination
@param string $selector
@param string $ack
@param array $header
@return int
Subscribe to given destination .