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
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.