diff --git a/sendmessage_example.php b/sendmessage_example.php index 6e0dcb0..7d3fe01 100644 --- a/sendmessage_example.php +++ b/sendmessage_example.php @@ -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(); diff --git a/xmlstream.php b/xmlstream.php index 7a59a04..646d925 100644 --- a/xmlstream.php +++ b/xmlstream.php @@ -29,7 +29,7 @@ class XMLStream { protected $host; protected $port; protected $stream_start = ''; - protected $stream_end = '