<div dir="ltr">Dear All,<div>       How to close the ws connection from the server side?</div><div>       currently, I just call the following funtion at stand alone thread,</div><div><font color="#0000ff">                   lws_close_reason(g_wsi_test_close, LWS_CLOSE_STATUS_NORMAL,</font></div><div><font color="#0000ff"><span style="white-space:pre">                                    </span> (unsigned char *)"seeya", 5);</font></div><div><font color="#0000ff"><span style="white-space:pre">           </span>   lws_callback_on_writable(g_wsi_test_close);</font></div><div><font color="#0000ff">       </font></div><div>        then, handle <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">LWS_CALLBACK_SERVER_WRITEABLE msg like this,</span></div><div><div>               <font color="#0000ff">case LWS_CALLBACK_SERVER_WRITEABLE:</font></div><div><font color="#0000ff"><span style="white-space:pre">               </span>case LWS_CALLBACK_HTTP_WRITEABLE:</font></div><div><font color="#0000ff"><span style="white-space:pre">          </span>{</font></div><div><font color="#0000ff"><span style="white-space:pre">                  </span>if (lws_get_close_length(wsi))</font></div><div><font color="#0000ff"><span style="white-space:pre">                     </span>{</font></div><div><font color="#0000ff"><span style="white-space:pre">                          </span>return -1;</font></div><div><font color="#0000ff"><span style="white-space:pre">                 </span>}</font></div><div><font color="#0000ff"><span style="white-space:pre">          </span>}</font></div></div><div><font color="#0000ff">      </font><font color="#000000">It` seems work well,  the connection closed. but I am not sure for this.</font></div><div><font color="#000000">      are there other ways to close the ws connection from the server side?</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Best Wishes,</font></div><div><font color="#000000">Chropin.</font></div><div><font color="#000000">      </font></div></div>