Files
aqua-playground/src/parCall.ts

10 lines
328 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[], _) => {
2021-04-14 17:46:09 +03:00
return `hello`
})
await parFunc(client, client.relayPeerId!)
}