mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-07-02 00:01:44 +00:00
10 lines
341 B
TypeScript
10 lines
341 B
TypeScript
![]() |
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
|
||
|
import {parFunc} from "./compiled/par";
|
||
|
|
||
|
export async function parCall(client: FluenceClient) {
|
||
|
registerServiceFunction(client, "parabb", "call", (args: any[], _) => {
|
||
|
return `Hello, ${args[0]}!`
|
||
|
})
|
||
|
|
||
|
await parFunc(client, client.relayPeerId!)
|
||
|
}
|