[Libwebsockets] How to close the ws connection properly
chropinhu at gmail.com
Wed Jul 18 10:04:51 CEST 2018
How to close the ws connection from the server side?
currently, I just call the following funtion at stand alone thread,
(unsigned char *)"seeya", 5);
then, handle LWS_CALLBACK_SERVER_WRITEABLE msg like this,
It` seems work well, the connection closed. but I am not sure for
are there other ways to close the ws connection from the server side?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets