-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Singleton connections #93
Comments
There is a way to make an output act as 'global', as per the docs. Simply double click the output, and all inputs consuming that type will automatically be connected, without cluttering the UI. Only when you hover a global output, or related input, will the connectors visualize. See below for an example.
Let me know if that answers your question! And yes, the docs definitely need at least a screenshot on this :-) |
Thanks for your response @steve2507 , |
Yeah any thoughts on this would be appreciated. Back when I used Xible for home automation, I had a similar 'issue' and was thinking about creating a separate 'global flow' or something like that to store nodes which are exposed to every flow available. |
A suggestion would be that the node that has been created that will be "connecting to a server or serving a global connection" would contain an executable file defined in the structure and the execution of this code returns an object (server connection for example) as a singleton. EXAMPLE:
when using this node, the user will have a dropdown list asking which configuration it would use (the predefined configurations). Might be tricky to explain in text for now but do you get the gist of it ? |
You already concluded this I see, but indeed every flow runs as its own process to not hinder each other in the case of computational intensive tasks. This will also allow for clustering a Xible setup later versions. I do believe what you need is possible, without any extra development from a nodepack developer, simply by letting a Xible user define some nodes (such as the mongodb one) in a central place. |
Would you have a suggestion on how to proceed with that ? |
Yes, I think so. |
Hello, this is an awesome project!
Just need to clarify something as it is not in the docs, or might not have been in the scope.
I am creating a pub/sub connector to MQTT, I want to be able to connect to the server once with the username and password. But then share that connection with all the nodes that will be using the MQTT connection. Is that possible ? If not, is it in the scope? If it is I would be happy to help on that if you point out where this needs to be included
The text was updated successfully, but these errors were encountered: