easywsclient
easywsclient copied to clipboard
why example-client.cpp takes 100% server ?
i have compiled example-client.cpp as per readme. i am not doing anything else on received messages, just doing cout on received messages. and the server usage is 100%
any idea why is that ?
p.s. this is by far easiest websocket /clientlibrary i have seen. thanks
I encountered the same issue today and it seems to be because recv
is being called in a hot loop:
I will investigate and create a PR if I find a fix
Just use poll(20)
(or higher, depending on your needs)
Just use
poll(20)
(or higher, depending on your needs)
oh,it works,thanks