PHPDaemon\Clients\XMPP\Connection::iqSet PHP Method

iqSet() public method

public iqSet ( string $xml, callable $cb ) : boolean
$xml string
$cb callable
return boolean
    public function iqSet($xml, $cb)
    {
        if (!isset($this->xml)) {
            return false;
        }
        $id = $this->getId();
        $this->xml->addIdHandler($id, $cb);
        $this->sendXML('<iq xmlns="jabber:client" type="set" id="' . $id . '">' . $xml . '</iq>');
        return true;
    }