src/Protocol/Protocol.php
public function getUnsubscribeFrame($destination, $subscriptionId = null)
    {
        $frame = $this->createFrame('UNSUBSCRIBE');
        $frame['destination'] = $destination;
        $frame['id'] = $subscriptionId;
        return $frame;
    }
public function getUnsubscribeFrame($destination, $subscriptionId = null)
    {
        $frame = $this->createFrame('UNSUBSCRIBE');
        $frame['destination'] = $destination;
        $frame['id'] = $subscriptionId;
        return $frame;
    }
public function getUnsubscribeFrame ( $ destination , $ subscriptionId = null ) { $ frame = $ this -> createFrame ( 'UNSUBSCRIBE' ) ; $ frame [ 'destination' ] = $ destination ; $ frame [ 'id' ] = $ subscriptionId ; return $ frame ; }
Get unsubscribe frame.

@param string $destination
@param string $subscriptionId
@return \Stomp\Transport\Frame
Get unsubscribe frame .