Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vamskk opened this issue Apr 23, 2018 · 1 comment

Comments

@vamskk
Copy link

vamskk commented Apr 23, 2018

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.

@tatsuhiro-t
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants