[Libwebsockets] libwebsockets_broadcast

Michel Archambault marchamb at matrox.com
Tue Mar 26 16:31:28 CET 2013


Hi,
 
I have an application that generates data in one thread (name it the
"broadcast thread").
Previously, I used libwebsockets_broadcast() to sent this data to all
clients connected, but this function has been removed.
 
What is the good way to do that now?
Should I maintain a list of active clients (wsi), that my "broadcast
thread" will use to call libwebsocket_write() for each one of them?
 
Thank you!
 
--
Michel Archambault


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20130326/504d9cef/attachment.html>


More information about the Libwebsockets mailing list