wslay
wslay copied to clipboard
Queued data being sent to peer with out " wslay_event_send(ctx);" being called
Hi,
I'm using wslay library to develop websocket client for my custom device. I observe that when the code hits at wslay_event_queue_msg(ctx, &wslay_msg);
the data is sent to peer. I would actually want to queue the data and send it to peer when
wslay_event_send(ctx);
is called.
Am I missing something for it is not working as expected.
Regards, Vamsi.
Reading the source code shows there is no way to send message to peer inside wslay_event_queue_msg. It just adds new message into the internal queue.