[Libwebsockets] user parameter in protocol callback

Joel Winarske joel.winarske at gmail.com
Thu Oct 1 17:09:39 CEST 2020


How does one pass an opaque data pointer so it shows up *everytime* as the
"user" parameter in the protocol callback? I've tried a few variations and
am not seeing a consistent pattern.

I do see a consistent pattern when setting the opaque_user_data in
lws_client_connect_info, and accessing it with lws_get_opaque_user_data.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20201001/0e822a50/attachment.htm>

More information about the Libwebsockets mailing list