* added the subscribe function
git-svn-id: svn://netflint.net/xmpphp@74 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
parent
7309d4fa68
commit
626db605c3
@ -208,6 +208,15 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
|
|||||||
|
|
||||||
$this->send($out);
|
$this->send($out);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Send Auth request
|
||||||
|
*
|
||||||
|
* @param string $jid
|
||||||
|
*/
|
||||||
|
public function subscribe($jid) {
|
||||||
|
$this->send("<presence type='subscribe' to='{$jid}' from='{$this->fulljid}' />");
|
||||||
|
#$this->send("<presence type='subscribed' to='{$jid}' from='{$this->fulljid}' />");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Message handler
|
* Message handler
|
||||||
|
Loading…
Reference in New Issue
Block a user