13
sendMessageToBundle.md
Normal file
13
sendMessageToBundle.md
Normal file
@ -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 <optional> The data to send.
|
||||||
|
cb function <optional> Browser only The error-first callback to handle the server's acknowledgement message, if any.
|
||||||
|
|
||||||
Reference in New Issue
Block a user