-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
[feature request] requestGroupInfo equivalent #21
Comments
If you prefer that, I can send a PR:) |
Oh, I'm sorry, It's not that simple. |
@NoamDev Yes, you are right, it's not so simple and you also need to create a mapper :) |
@NoamDev Also, have you thought about implementation |
@NoamDev I think, implementation should be similar to https://stackoverflow.com/a/25714357/9272042 |
I can't find an action that will be triggered whenever a new client joins.. |
@NoamDev that's weird |
Ah! You seem to be right! |
@NoamDev It seems to be thruth - And for old API (<= 17) create direct method What do you think about it? BTW, what is the action do you receive (on group owner side), when any device connects to group? |
It ain't depreacted or something, I don't see a reason to document that way. Maybe more like, in api>=18, you can also get it through subscribeOnConnectionChanged.
What;s exactly the case, after |
Cool, then I'm awaiting PR from you 😊 |
@NoamDev any updates? :) |
I'm sorry, I don't think I'm gonna send one. I Hope I did help a bit, and that you or someone else will continue making this tiny yet wonderful library. |
Currently, there's a function called getGroupPassphraseInfo, but it'll only give you the passphrase.
I need to check who are the other peers in my group.
I need the groupOwner's and clients' macAddresses.
I believe the best way to achieve this, is to create additional method requestGroupInfo:
and an appropriate js method:
const getGroupInfo = () => WiFiP2PManager.getGroupInfo();
Maybe you should also deprecate the getGroupPassphraseInfo method and remove it in the next breaking change.
The text was updated successfully, but these errors were encountered: