<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Stefano,</div><div><br></div><div>You need to request a writeable callback and then you can send the data from within the callback.</div><div><br></div><div>See the following page, section "Only send data when socket writeable" for details:</div><div><a href="https://libwebsockets.org/lws-api-doc-master/html/md_READMEs_README_8coding.html">https://libwebsockets.org/lws-api-doc-master/html/md_READMEs_README_8coding.html</a></div><div><br></div><div>Thanks,</div><div>Silas<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 21 Sep 2018 at 13:29, Stefano Mora <<a href="mailto:stefano.mora@newdep.com">stefano.mora@newdep.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="IT">
<div class="m_-2776334511943661313WordSection1">
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black" lang="EN-US">I’m developing a simple websocket server based on minimal sample.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black" lang="EN-US">No problem when I need to reply to client but I’d like to generate data from server and push them to client.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black" lang="EN-US">Is it possible?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black" lang="EN-US">Which wsi structure do I need to point ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black" lang="EN-US">Thanks!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>

_______________________________________________<br>
Libwebsockets mailing list<br>
<a href="mailto:Libwebsockets@ml.libwebsockets.org" target="_blank">Libwebsockets@ml.libwebsockets.org</a><br>
<a href="https://libwebsockets.org/mailman/listinfo/libwebsockets" rel="noreferrer" target="_blank">https://libwebsockets.org/mailman/listinfo/libwebsockets</a><br>
</blockquote></div></div>