aqua/aqua-src/nopingback.aqua

19 lines
471 B
Plaintext
Raw Permalink Normal View History

service HelloWorld("hello-srv"):
hello: string -> string
data Info:
external: []string
func sayHello(info: Info) -> string:
-- execute computation on a Peer in the network
on "hello-peer":
comp <- HelloWorld.hello(info.external!)
-- send the result to target browser in the background
co on "target-peer" via "target-relay":
res <- HelloWorld.hello(%init_peer_id%)
2022-01-13 10:58:20 +00:00
join comp
-- send the result to the initiator
<- comp