Closed NoamDev closed 4 years ago
I don't what is wrong, the name 'disconnect' or the implementation. @kirillzyusko, What was your purpose?
Hi, @NoamDev When I worked on implementation of this library, I merely wanted to recreate all basics methods (yes, sometimes methods names are different 😄)
About disconnect
implementation from StackOverflow - you can re-create this code snippet using JS code:
await getGroupPassphraseInfo();
await removeGroup();
It was a goal of this library: rather than trying to cover all possible cases, merely write basics methods and if needed - use a combination of them in JS.
Did I answer on your question?
Yeah, I guess that what enabled to create a great library with only two collaborators:) In that case, I suggest you to rename the method, it is really misleading..
Yes, I know, it's a breaking change so you'd have to publish a new version...
Yes, I agree with you I definetly have to do it Thank you for pointing it out :)
@NoamDev Done!😎 I published new version as 2.0.0
. So, you can update to the newest and use cancelConnect
.
currently the implementation is:
However, according to its docs cancelConnect - 'Cancel any ongoing p2p group negotiation'.
disconnect should be like in this stackoverflow answer: