Giter VIP home page Giter VIP logo

Comments (9)

saqura avatar saqura commented on August 11, 2024

Or what exactly is this option good for?

The intention of relay_all_normal is to forward "normal" XMPP messages that the XMPP bot receives to Rocket.Chat. Here "normal" means messages not coming from a groupchat (MUC). So if you write directly to the XMPP bot (no matter your JID) without using the MUC, than this option makes those messages also appear in Rocket.Chat.

So, does this mirror any message which is passing the bridge-JID to the MUC, where it is set true?

I'm not sure whether I fully understand your question, but with this option no new XMPP messages should be created. It should only affect Rocket.Chat.

We have the result, that messages mirrored to the JID are also seen in each MUC.

So the third bridge in your config file that bridges messages between a Rocket.Chat room and a single XMPP JID also affects the messages sent to the MUCs of the other two bridges?

from xmppwb.

rasos avatar rasos commented on August 11, 2024

Thanks for explaining. Well, if any message that the bot receives is forwarded, then this is not what we want.
Yes, in this set-up, messages in the third bridge appear also in the Rocket.Chat room, which should bridge only to the corresponding MUC.
So disabling relay_all_normal should prevent that. We'll test, but need a test machine first, can't do it on the production environment, not to confuse users in rooms.

from xmppwb.

saqura avatar saqura commented on August 11, 2024

I have updated the documentation in that regard and removed this setting from the sample configurations, since it might be confusing at first. I think this option is only needed for more specialized uses cases anyways.

from xmppwb.

rasos avatar rasos commented on August 11, 2024

Good to have the relay_all_normal not activated as default in the sample configuration, thanks for updating.

It seems we need some different kind of relaying messages from JID users, maybe you can give us a hint, how to do it. Let me briefly explain our case:
We need to serve Windows Phone users with Rocket.Chat rooms. There is no chance to build a WP App for RC in a usable quality (we tried several paths, the problem is that webkit can't be included). So we thought we connect the WP users with xmpp. The only xmpp client on the market for WP is IM+, but we discovered that this one does not support MUCs (whilst the Android version does). So what we try to do is bridging JIDs to one RC room. That works in both ways (even using only one webhook for several JIDs), however if xmpp user A sends a message to the RC room, xmpp user B won't see it (also not if we set up a webhook and a RC bot for each user separately).
It seems that RC is not relaying messages from one webhook to another one.
Any chance to relay a message piped through xmppwb from one xmpp_endpoint to another one?

from xmppwb.

saqura avatar saqura commented on August 11, 2024

I understand the problem. A bridge currently works best when bridging one RC room to one XMPP MUC, as relaying messages between the XMPP parts of a bridge is not currently implemented. This might be a feature that I could add in a later version though. I have created a separate issue for this feature [#7], but I don't yet know when this will be implemented.

from xmppwb.

rasos avatar rasos commented on August 11, 2024

Great if that uses case could be rolled out with an enhancement of xmppwb and if it would not need any extension on RC, as asked here RocketChat/Rocket.Chat#3721
We might back issue #7, as we have an urgent customer need for it.

from xmppwb.

saqura avatar saqura commented on August 11, 2024

Thank you for your interest in this, however I can't currently accept financial contributions as I have only limited time to work on this project. This feature is something that I am interested in aswell though, so I am going to implement it. Please track #7 for further updates about this.

But I think the main use of this feature is the connection of multiple XMPP MUCs (and to keep the XMPP endpoints of a bridge in sync), and not the connection of multiple "normal JIDs", since MUCs are better suited for this. You should be aware that using it like this (while it will probably work) is a workaround and I don't know how well it scales with more than a few JIDs. A better solution (and user experience) would be if the XMPP client supported MUCs, so if you have the option it might be worthwile to approach the IM+ developers regarding MUC support.

from xmppwb.

rasos avatar rasos commented on August 11, 2024

Thank you for considering an extension to keep XMPP endpoints of a bridge in sync. For our use case it does not need to scale, we just have to include a few WP users via a XMPP bridge. I will then follow #7. I am totally aware that MUCs would have been the better option, but the development of the IM+ clients stopped 2014 and it is the only XMPP product which is available for Windows Phones.

from xmppwb.

saqura avatar saqura commented on August 11, 2024

Ok, I am closing this issue then. I will update #7 for further information.

from xmppwb.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.