xmppを介した通知にjaxl3.0を使用しようとしています。唯一のことは、私は理解できません-仕事が終わった後、どうすればJAXLサーバーをシャットダウンできますか?jaxl-serverを停止するためのコールバックが表示されない
これが私のコードの一部です
public function __construct(JAXL $jaxl){
$this->client=$jaxl;
$this->client->add_cb('on_auth_success', array($this,'send'));
}
public function setSenders($senders){
$this->senders=$senders;
}
public function addLine($messagePart){
$this->message.=$messagePart.PHP_EOL;
}
public function notify(){
$this->client->start();
}
public function send(){
foreach($this->senders as $sender){
$this->client->send_chat_msg($sender,$this->message);
}
//Here server should be stopped. Everything is done.
}