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

>2 devices and host/peer setup #7

Closed
layton322 opened this issue Jan 31, 2018 · 2 comments
Closed

>2 devices and host/peer setup #7

layton322 opened this issue Jan 31, 2018 · 2 comments

Comments

@layton322
Copy link

Hi there,

Firstly, thank you for the fantastic job you've done with this API! It's made P2P vastly simpler and cleaner for me. I would like to make use of the API for a project I am working on - notably, a game involving up to 5 devices, with one 'host' device and four peer users. The peer users will need to send data to the host, and the host will have to send data out to all peer users.

I have seen the API used effectively in your sample app for two-way communication - for more users, is it as simple as opening up the discovery process again on a designated 'host' device? I.e. can one device maintain active connections with multiple devices and be able to send out messages that are picked up by them all?

Thanks!

@layton322 layton322 changed the title >2 devices and server/peer setup >2 devices and host/peer setup Jan 31, 2018
@adroitandroid
Copy link
Owner

Hi, glad you found this useful. You can make multiple devices discoverable that can all be discovered by any host that starts discovering. An active connection is created only while transferring from one device to another and you can transfer to multiple devices

@adroitandroid
Copy link
Owner

adroitandroid commented Feb 1, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants