PHPDaemon\Servers\WebSocket\Connection::sendFrame PHP Method

sendFrame() public method

Sends a frame.
public sendFrame ( string $data, string $type = null, callable $cb = null ) : boolean
$data string Frame's data.
$type string Frame's type. ("STRING" OR "BINARY")
$cb callable Optional. Callback called when the frame is received by client.
return boolean Success.
    public function sendFrame($data, $type = null, $cb = null)
    {
        return false;
    }