1

我想在 ejabbered 中向其他用户发送多播消息。

我已成功发送“单个”和“组”消息

//单人聊天

$conn->message($toJabberId, $message, "chat", null, null);

//用于群聊

$conn->presence(NULL, "available", $nickname);
$conn->message($chatroom, $message, "groupchat", null, null);
$conn->presence(NULL, "unavailable", $nickname);

现在我正试图在我的代码中加入多播功能。实际上我有以下用于多播的示例节,但不知道在 xmpphp 中使用。

<message to='multicast.jabber.org'>
   <addresses xmlns='http://jabber.org/protocol/address'>
       <address type='to' jid='hildjj@jabber.org/Work' desc='Joe Hildebrand'/>
       <address type='cc' jid='jer@jabber.org/Home' desc='Jeremie Miller'/>
   </addresses>
   <body>Hello, world!</body>
</message>

任何想法使用 xmpphp 多播消息?

谢谢。

4

0 回答 0