Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
Ok, I am closing this issue then. I will update #7 for further information.
from xmppwb.
Related Issues (11)
- No working HOT 1
- XMPP Custom Server HOT 5
- Add option to ignore SSL certificates on the webhooks HOT 4
- async def handle_outgoing(self, outgoing_webhook, msg): SyntaxError: invalid syntax HOT 10
- bridge only works one way HOT 3
- Relay the XMPP parts of a bridge to each other HOT 4
- MUCs needed in config, even if no MUCs in place HOT 1
- Automate bridge creation HOT 1
- Avatar HOT 3
- Issues with dependency slixmpp HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmppwb.