From 2e0769e633300243954250a0cf27756e831a92d2 Mon Sep 17 00:00:00 2001 From: sZLukas1607 Date: Fri, 29 May 2020 08:48:33 +0200 Subject: [PATCH] --- sendMessageToBundle.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sendMessageToBundle.md diff --git a/sendMessageToBundle.md b/sendMessageToBundle.md new file mode 100644 index 0000000..96a04f3 --- /dev/null +++ b/sendMessageToBundle.md @@ -0,0 +1,13 @@ +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. +