An easy method of sending messages to your uibuilder front-end from anywhere in your flows
and a method of easily getting a response back again.
See Documentation: Using the sender node for more detail.
Inputs
- payload string | buffer
- Optionally, the payload of the message to send to all connected client browser tabs.
- topic string
- Optionally, the MQTT topic to use. Takes preference over the topic defined in settings.
Outputs
If Pass input msg to output?
is set, the input message is sent to the output.
If Allow return messages?
is set, any message send from the matching uibuilder front-end app
and containing the right _uib.originator
property is sent to the output.
Node Settings
- URL string (dropdown)
- An existing uibuilder node.
- Name string
- A short description shown in the admin interface.
- Topic string
- A topic name to use if the incoming msg does not contain one.
- Pass input msg to output? boolean
-
If selected, an output port will appear and any input msg will be also delivered to the output.
This allows you to use the node in-line with a flow.
- Allow return messages? boolean
-
If selected, an output port will appear.
This allows you to get return messages back from your uibuilder front-end app.
When returning a message, include the
_uib.originator
property with a value of
the sender node's node ID. You can get that by sending a message through the sender node.