I'm developing a client using the venereable libwebsockets library.
I don't know where to assign a char *
(somewhere during setup I presume) I have so that I can get my hands on the same via the void *user
parameter in my client's lws_callback_function()
.
I've tried setting user
in my lws_protocols
, I've tried setting userdata
in my struct lws_client_connect_info
, and a bunch of other places I can't remember.