[Libwebsockets] Proper method to close websocket from client

Tony yellowjacketlite at gmail.com
Thu Dec 4 16:55:58 CET 2014

I don't see an obvious means to properly close the websocket connection
from a client perspective.  Looking at the test-client.c it appears to just
use libwebsocket_context_destroy as a 'close' method.  But that doesn't
correctly handle the webscoket shutdown handshake (client sends 'close',
server responds with 'close' and 'client requested').

Does one of the sample clients perform a proper graceful shutdown of the
websocket connection?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20141204/ded7c89e/attachment.html>

More information about the Libwebsockets mailing list