Skip to content
Snippets Groups Projects
Commit 1fb95e80 authored by Andy Green's avatar Andy Green
Browse files

close add api to control sent close frame contents

This adds an api lws_close_reason() which lets you control what will
be sent in the close frame when the connection is closed by returning
nonzero from the user callback.

The test server demo is extended to prove it works in both directions.

With this, we should have nice close support.

https://github.com/warmcat/libwebsockets/issues/196



Signed-off-by: default avatarAndy Green <andy.green@linaro.org>
parent 066a7a18
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment