aqua/aqua-src/nopingback.aqua

14 lines
413 B
Plaintext
Raw Normal View History

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