aqua/aqua-src/nopingback.aqua
Dmitry Kurinskiy d1b54fe39b
Fixes topology for co (#394)
* Fixes topology for co

* Removed debug output

* Test fixed
2021-12-29 12:01:13 +03:00

14 lines
413 B
Plaintext

service HelloWorld("hello-srv"):
hello: string -> string
func sayHello() -> string:
-- execute computation on a Peer in the network
on "hello-peer":
comp <- HelloWorld.hello(%init_peer_id%)
-- send the result to target browser in the background
co on "target-peer" via "target-relay":
res <- HelloWorld.hello(%init_peer_id%)
-- send the result to the initiator
<- comp