Files
aqua-playground/src/parCall.ts

10 lines
341 B
TypeScript
Raw Normal View History

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!)
}