Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11593

Re: Broadcast message using Openfire

$
0
0

     include '../XMPP.php';

 

    $conn = new XMPPHP_XMPP('xxx.xxx.xxx.xxx', 5222, 'username', 'password', 'xmpphp',

                            'xxx.xxx.xxx.xxx', $printlog = true, $loglevel = XMPPHP_Log::LEVEL_INFO);

    $conn -> connect();

   

    $conn -> processUntil('session_start');

    $conn -> presence(NULL, "available", "room1@conf.xxx.xxx.xxx.xxx/username");

   

    $conn -> message('room1@conf.xxx.xxx.xxx.xxx', 'Test message!', 'groupchat');

    sleep(60);

   

    $conn -> presence(NULL, "unavailable", "room1@conf.xxx.xxx.xxx.xxx/username");

    $conn -> disconnect();

 

 

 

// sir i able to send individual message but can't send group message for conferance room..

and also sir please i want to register user and create group from php . Please denote a way to work it proper.


Viewing all articles
Browse latest Browse all 11593

Trending Articles