[Libwebsockets] lws_close_reason

Andy Green andy at warmcat.com
Mon Jan 11 12:14:13 CET 2016



On January 11, 2016 11:07:52 AM GMT+00:00, Subi S S <subi.s at cambiumnetworks.com> wrote:
>Hi Andy,
>
>I was looking for a way to send close reason on websockets, found that
>it got  recently added .
>
>As it is still in master branch and no release is out , is it safe to
>PATCH it on top of v1.6.0-chrome48-firefox42
>https://github.com/warmcat/libwebsockets/issues/196
>
>https://github.com/warmcat/libwebsockets/commit/1fb95e8084bc7b27e72bf199ba422efdfbee360b#diff-1a03ea41c91111289d2f50246637983f
>
>is there any thing else I need to patch to get this working ? ( I am
>yet to try to this ).

It's a pretty good bet as a standalone patch, plus or minus a little bit of conflict in changelog or so.

-Andy


>
><QUOTE>
>
>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.
>
>
>
>#196<https://github.com/warmcat/libwebsockets/issues/196>
>
>
>
>Signed-off-by: Andy Green <andy.green at linaro.org>
><UNQUOTE>
>
>
>Thanks,
>Subi
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://ml.libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list