bridge(appDNAHash, zomeName, functionName, arguments)
Calls a bridged function from another app. appDNAHash
is the application being called. Note that the application must have explicitly been bridged. In development use hcdev
's -bridgeSpecs
and a bridge_specs.json
file to setup bridging. Just like in send
, the arguments
parameter is a string or an object/hash depending on the CallingType that was specified in the function's definition. Returns the value that's returned by the given function on the other side of the bridge.
appDNAHash: hash-string
zomeName: string
functionName: string
arguments: string OR object
Returns: any-type
expand_less
JS example
bridge( "QmY8Mzg9F69e5P9AoQPYat655HEhc1TVGs11tmfNSzkqh2", "holodex", "index", {message: "this is a message"} )