* added the subscribe function

git-svn-id: svn://netflint.net/xmpphp@74 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
fritzy 2008-12-17 17:50:35 +00:00
parent 7309d4fa68
commit 626db605c3

View File

@ -208,6 +208,15 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
$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