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

How to loop on active streams? #16

Open
bonfus opened this issue Feb 9, 2017 · 1 comment
Open

How to loop on active streams? #16

bonfus opened this issue Feb 9, 2017 · 1 comment

Comments

@bonfus
Copy link

bonfus commented Feb 9, 2017

I would like my server to send a message to all the open connections.
In order to do so I think I need to loop on active streams. How can this be done?
Thanks!

ps: sorry for all these issues, I don't know how else to contact you.

@rxi
Copy link
Owner

rxi commented Feb 11, 2017

There isn't a way to do this if I recall. Unless I'm forgetting an actual reason this wasn't added, the functionality should be trivial to add by implementing two functions: One to get the first stream in the list and another to get the next stream of the stream passed to it. Alternatively you could store a vector in your own code of the current streams.

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

No branches or pull requests

2 participants