src/Protocol/Protocol.php
public function getDisconnectFrame()
    {
        $frame = $this->createFrame('DISCONNECT');
        if ($this->hasClientId()) {
            $frame['client-id'] = $this->getClientId();
        }
        return $frame;
    }
public function getDisconnectFrame()
    {
        $frame = $this->createFrame('DISCONNECT');
        if ($this->hasClientId()) {
            $frame['client-id'] = $this->getClientId();
        }
        return $frame;
    }
public function getDisconnectFrame ( ) { $ frame = $ this -> createFrame ( 'DISCONNECT' ) ; if ( $ this -> hasClientId ( ) ) { $ frame [ 'client-id' ] = $ this -> getClientId ( ) ; } return $ frame ; }
Get the disconnect frame.

@return \Stomp\Transport\Frame
Get the disconnect frame .