send_signal

send_signal transmits a signal to any active "Listen" diagram elements for this app or a different app using "push" style messaging.

Format:

send_signal(message [,channel] [,url])

Parameters:

Parameter Type Description
message mixed The value of the message to transmit. this can be any value
channel string  [Optional]The channel key for the channel we are sending to (default is 'default')
app_name string  [Optional]name of the target app (e.g. "MyBroadcastApp") or server entrypoint URL for the target app. (e.g. https://192.168.1.160/myApp/backend/backend.php). When a URL is passed, it must be a fully qualified URL including the protocol component (e.g. "http:" or https"). If the name of another app is passed, Exotool will attempt to compute the entrypoint for the other app based on the assumption that both apps are co-located under the same directory path on the same server

Examples

 send_signal("I just logged in!", "logins")
 send_signal("I just logged in!", "logins", "myOtherApp")
 send_signal("I just logged in!", "logins", "https://192.168.1.160/myOtherApp/backend/backend.php")