src/Client.php
public function sendFrame(Frame $frame, $sync = null)
    {
        if (!$this->isConnecting && !$this->isConnected()) {
            $this->connect();
        }
        // determine if client was configured to write sync or not
        $writeSync = $sync !== null ? $sync : $this->sync;
        if ($writeSync) {
            return $this->sendFrameExpectingReceipt($frame);
        } else {
            return $this->connection->writeFrame($frame);
        }
    }
public function sendFrame(Frame $frame, $sync = null)
    {
        if (!$this->isConnecting && !$this->isConnected()) {
            $this->connect();
        }
        // determine if client was configured to write sync or not
        $writeSync = $sync !== null ? $sync : $this->sync;
        if ($writeSync) {
            return $this->sendFrameExpectingReceipt($frame);
        } else {
            return $this->connection->writeFrame($frame);
        }
    }
public function sendFrame ( Frame $ frame , $ sync = null ) { if ( ! $ this -> isConnecting && ! $ this -> isConnected ( ) ) { $ this -> connect ( ) ; } // determine if client was configured to write sync or not $ writeSync = $ sync !== null ? $ sync : $ this -> sync ; if ( $ writeSync ) { return $ this -> sendFrameExpectingReceipt ( $ frame ) ; } else { return $ this -> connection -> writeFrame ( $ frame ) ; } }
Send a frame.

@param Frame $frame
@param boolean $sync
@return boolean
Send a frame .