src/Network/Connection.php
public function writeFrame(Frame $stompFrame)
    {
        if (!$this->isConnected()) {
            throw new ConnectionException('Not connected to any server.', $this->activeHost);
        }
        $this->writeData($stompFrame, $this->writeTimeout);
        $this->observers->sentFrame($stompFrame);
        return true;
    }
public function writeFrame(Frame $stompFrame)
    {
        if (!$this->isConnected()) {
            throw new ConnectionException('Not connected to any server.', $this->activeHost);
        }
        $this->writeData($stompFrame, $this->writeTimeout);
        $this->observers->sentFrame($stompFrame);
        return true;
    }
public function writeFrame ( Frame $ stompFrame ) { if ( ! $ this -> isConnected ( ) ) { throw new ConnectionException ( 'Not connected to any server.' , $ this -> activeHost ) ; } $ this -> writeData ( $ stompFrame , $ this -> writeTimeout ) ; $ this -> observers -> sentFrame ( $ stompFrame ) ; return true ; }
Write frame to server.

@param Frame $stompFrame
@return boolean
@throws ConnectionException
Write frame to server .