Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create just a p2p topics? #900

Closed
iwhy opened this issue Feb 29, 2024 · 1 comment
Closed

How to create just a p2p topics? #900

iwhy opened this issue Feb 29, 2024 · 1 comment
Labels

Comments

@iwhy
Copy link

iwhy commented Feb 29, 2024

my code here:
``
var topic1 = tinode.newTopicWith("usrFqGScSWNnDU");
topic1.isSubscribed = true;

print(topic1.isP2P());
print(topic1.private);

// var topic1 = tinode.getTopic(topicName: "dao_user_alice_vlog");
var pp = await tinode.subscribe(
'frank', MetaGetBuilder(topic1).withLaterSub(null).build(), //SetParams()
SetParams(
tags: ["travel", "vlog"],
// desc: TopicDescription(),
sub: TopicSubscription(
user: tinode.getCurrentUserId(),
online: true,
topic: "frank",
created: DateTime.now().toUtc(),
// public: {"fn": "Frank Singer"},
),
),
);

print(pp);

// topic1.
// topic1.invite("alice", "JRWS");
var msg2 = topic1.createMessage("my new message", false);
await topic1.publishMessage(msg2);``

The code don't create the topic?

what shall i do to create a simple p2p topic?

@or-else
Copy link
Contributor

or-else commented Feb 29, 2024

Please use forum for questions.

@or-else or-else closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants