Conduit API
Case Study
RegisterForMessaging
 
This function is used to register an app for events with a unique key.Registering an app can be used for messaging communication between two apps from the same toolbar/engine, or from web page to app.
Notes:
  • The registered app should remain open in order to receive messages.
  • This function should be used along with the "SendMessage ()" function.
 
RegisterForMessaging(key)
 
Parameter Description Range Type
Key The key that the sender app will use to communicate with this app Not Null or empty string string
 
Boolean (Success or failure)
 
This function can be used both with the HTML app and with the gadget window.
*Notice: API methods must be invoked after the web page has triggered the "onload" event.