mirror of
https://github.com/fluencelabs/registry.git
synced 2025-06-28 07:11:36 +00:00
initTopicAndSubscribeBlocking: remove 'co'
This commit is contained in:
@ -5,8 +5,9 @@ import { initTopicAndSubscribeBlocking, findSubscribers } from "./generated/expo
|
||||
async function main() {
|
||||
// connect to the Fluence network
|
||||
await Fluence.start({ connectTo: krasnodar[1] });
|
||||
let topic = "myTopic";
|
||||
let topic = "myTopic" + new Date().valueOf();
|
||||
let value = "myValue";
|
||||
console.log("Will create topic", topic);
|
||||
// create topic (if not exists) and subscribe on it
|
||||
let relay = Fluence.getStatus().relayPeerId;
|
||||
await initTopicAndSubscribeBlocking(
|
||||
|
Reference in New Issue
Block a user