在聊天应用程序中为多人聊天发送通知

Sending notificaton for multi chat in a chat application

本文关键字:聊天 通知 应用程序      更新时间:2023-09-26

我正在使用XMPP/JQuery开发一个聊天应用程序。在聊天应用程序中,为一个多聊天任务,首先必须请求一个成员参与多人聊天。

如果您正在询问如何邀请某人进入多用户聊天室,请阅读XEP-0045第7.5节。如果您需要邀请Google用户,请发送直接邀请:

<message
    from='darkcave@chat.shakespeare.lit'
    to='hecate@shakespeare.lit'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <invite from='crone1@shakespeare.lit/desktop'>
      <reason>
        Hey Hecate, this is the place for all good witches!
      </reason>
    </invite>
    <password>cauldronburn</password>
  </x>
</message>

否则,穿过房间:

<message
    from='crone1@shakespeare.lit/desktop'
    to='darkcave@chat.shakespeare.lit'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <invite to='hecate@shakespeare.lit'>
      <reason>
        Hey Hecate, this is the place for all good witches!
      </reason>
    </invite>
  </x>
</message>