Files
aqua-playground/src/examples/streamCall.ts

10 lines
381 B
TypeScript
Raw Normal View History

2021-04-28 03:26:26 +03:00
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
2021-05-26 18:24:45 +03:00
import {checkStreams} from "../compiled/examples/stream";
2021-04-28 03:26:26 +03:00
export async function streamCall(client: FluenceClient) {
registerServiceFunction(client, "stringer-id", "returnString", (args: any[], _) => {
return args[0] + " updated"
})
return checkStreams(client, ["third", "fourth"])
}