【问题标题】:Sending notificaton for multi chat in a chat application在聊天应用程序中发送多聊天通知
【发布时间】:2011-08-16 03:53:52
【问题描述】:

我正在使用 XMPP/JQuery 开发一个聊天应用程序。在聊天应用程序中,对于 多聊天任务,首先必须向成员提出请求以参与 多人聊天。我怎样才能做到这一点。

【问题讨论】:

  • 请返回您的旧问题并接受一些答案。您会发现人们更有可能回答您的问题。
  • 我的意思是向特定用户发送请求的节

标签: javascript jquery xmpp


【解决方案1】:

如果您想了解如何邀请某人加入多用户聊天室,请阅读XEP-0045, section 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>

【讨论】:

猜你喜欢
  • 2018-11-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-09-25
  • 2018-01-20
  • 1970-01-01
相关资源
最近更新 更多