XMPP multiple sessions of the same user issue

前端 未结 4 1672
野的像风
野的像风 2021-02-05 20:19

I\'ve implemented a chrome extension which allow to use XMPP chat over BOSH connection with punjab server running on a remote server. It is implemented using javascript Strophe

4条回答
  •  终归单人心
    2021-02-05 20:33

    If you enable Carbons: XEP-0280: Message Carbons while you detect multiple login, XMPP server will send a carbon message to your other sessions which are logged in on different devices

    
    

    Remember to enable it for all sessions. So, both sessions will get the sending and receiving messages. For the case of receiving message, if you are carbon enabled, in presence will not effect.

    Again, if you want a message not to be carbon copy, add , inside stanza

    
    
    

    If the carbons module is not activated in your XMPP server, you need to activate it.

提交回复
热议问题