views:

240

answers:

0

Hello All, i'm working on a IM Bot that will send a simple IM to GTalk account, but I'm having trouble using the XMPPHP library. The authentication works fine and it looks like the first message sends correctly, but the last message receives an error from google code: 503.

You can view the errors here: Example Method Here is the sample method i'm using

$this->load->library('XMPPHP/XMPPHP_XMPP.php'); 
$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'newportrestaurantgroup', 'mypassword', 'Home', 'gmail.com');
  // Enables TLS - enabled by default, call before connect()!
  $conn->useEncryption(true);
  $conn->connect();
  $conn->processUntil('session_start');
  $conn->message('[email protected]', 'This is a test message!');
  $conn->disconnect();

I think the stream_select is coming from the error code 503.