wslay icon indicating copy to clipboard operation
wslay copied to clipboard

Queued data being sent to peer with out " wslay_event_send(ctx);" being called

Open vamskk opened this issue 7 years ago • 1 comments

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.

vamskk avatar Apr 23 '18 10:04 vamskk

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.

tatsuhiro-t avatar Jun 08 '18 13:06 tatsuhiro-t