mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 18:52:15 +00:00
19 lines
312 B
TypeScript
19 lines
312 B
TypeScript
import { Fluence } from "@fluencelabs/fluence";
|
|
import { registerHelloWorld, sayHello } from "./_aqua/hello-world";
|
|
|
|
async function main() {
|
|
await Fluence.start();
|
|
|
|
registerHelloWorld({
|
|
hello: async (str) => {
|
|
console.log(str);
|
|
},
|
|
});
|
|
|
|
await sayHello();
|
|
|
|
await Fluence.stop();
|
|
}
|
|
|
|
main();
|