Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Connected clients on the server id #85

Closed
moirrer opened this issue Nov 4, 2016 · 4 comments
Closed

Connected clients on the server id #85

moirrer opened this issue Nov 4, 2016 · 4 comments

Comments

@moirrer
Copy link

moirrer commented Nov 4, 2016

Is there a way to get a list/$buckets/bucket_id from all current connected clients?
Trying to do an implementation where once client #1 sends a message the server sends another to clients #2 and #3, so is not a broadcast and not to origin.
Can I accomplish that with HoaWebsocket?

@Hywan
Copy link
Member

Hywan commented Nov 5, 2016

Hello @moirrer,

Yes, this is possible. You have the broadcastIf method, or you can grab all the connections at once with $server->getConnection->getNodes().

@Hywan
Copy link
Member

Hywan commented Jan 8, 2017

@moirrer Is your question answered?

@moirrer
Copy link
Author

moirrer commented Jan 9, 2017

Yes, thanks so much.

@moirrer moirrer closed this as completed Jan 9, 2017
@Hywan Hywan removed the in progress label Jan 9, 2017
@Hywan
Copy link
Member

Hywan commented Jan 10, 2017

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants