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

13 lines
333 B
TypeScript
Raw Normal View History

import { FluencePeer } from '@fluencelabs/fluence';
import { checkStreams, registerStringer } from '../compiled/examples/stream';
2021-04-28 03:26:26 +03:00
export async function streamCall() {
registerStringer({
returnString: (args0) => {
return args0 + ' updated';
},
});
2021-04-28 03:26:26 +03:00
return checkStreams(['third', 'fourth']);
}