sendMessageToBundle(messageName, bundleName, *data, *cb) → {Promise|undefined} Sends a message to a specific bundle. Also available as a static method. See sendMessage for usage details. #Returns BROWSER ONLY This can only be used in code which runs in Dashboards and Graphics. A Promise that is rejected if the first argument provided to the acknowledgement is an Error, otherwise it is resolved with the remaining arguments provided to the acknowledgement. But, if a callback was provided, this return value will be undefined, and there will be no Promise. #Parameters Name Type Attributes Description name string The name of the message. bundleName string The name of the target bundle. data mixed The data to send. cb function Browser only The error-first callback to handle the server's acknowledgement message, if any.
1
sendMessageToBundle
sZLukas1607 edited this page 2020-05-29 08:48:33 +02:00