* added presence to example
* fixed typeo git-svn-id: svn://netflint.net/xmpphp@27 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
parent
c395c7115b
commit
b326a5380f
@ -7,6 +7,7 @@ include("xmpp.php");
|
||||
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=False, $loglevel=Logging::LOG_INFO);
|
||||
$conn->connect();
|
||||
$conn->processUntil('session_start');
|
||||
$conn->presence();
|
||||
$conn->message('someguy@someserver.net', 'This is a test message!');
|
||||
$conn->disconnect();
|
||||
|
||||
|
@ -29,7 +29,7 @@ class XMLStream {
|
||||
protected $host;
|
||||
protected $port;
|
||||
protected $stream_start = '<stream>';
|
||||
protected $stream_end = '</stream';
|
||||
protected $stream_end = '</stream>';
|
||||
public $disconnected = false;
|
||||
protected $sent_disconnect = false;
|
||||
protected $ns_map = array();
|
||||
|
Loading…
Reference in New Issue
Block a user