public function set_status($status, $show = 'chat', $priority = 10) { $this->send($this->get_pres_pkt(array(), $status, $show, $priority)); }
/** * Attaches the Auth Success listener */ private function attachAuthSuccessListener() { $this->client->add_cb('on_auth_success', function () { /** * Set status */ $this->client->set_status(self::STATUS_MESSAGE, self::STATUS, 10); /** * Join the MUC */ $this->client->xeps['0045']->join_room(new \XMPPJid($this->getContainer()->get('config')['xmpp']['conference'] . '/' . $this->getContainer()->get('config')['xmpp']['nickname'])); /** * Attach the stream reader. This has to be done inside a callback * so that JAXL's clock is already instantiated. */ $this->attachStreamReader(); }); }