php - XMPPHP sends message but won't receive -


<?php include("xmpp.php");  $conn = new xmpphp_xmpp('server.com', 5222, 'user', 'pass', 'home'); $conn->useencryption(true); $conn->connect(); $conn->processuntil('session_start'); $conn->message('person@server.com', mktime()); $payloads = $conn->processuntil('message'); $conn->message('person@server.com', mktime()); $conn->disconnect(); ?> 

right... connects - starts session , sends first timestamp received on jabber client i'm using.

then supposed "processuntil" message received (afaik) , if message received send timestamp. well, bit bit doesn't work.

i have no prior knowledge of xmpp servers or xmpphp, help, basic, wouldn't go unappreciated! :)

thanks.

i fought while. turns out have announce presence when connect. extracted cli_longrun_example.php , put after $conn->connect() , $conn->processuntil('session_start') calls:

$conn->presence($status='controller available.'); 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -