chadnickbok / librtcdcpp

A simple WebRTC DataChannels library
BSD 3-Clause "New" or "Revised" License
158 stars 41 forks source link

Add sleep in WebSocket poll #27

Closed mo3rfan closed 7 years ago

mo3rfan commented 7 years ago

CPU usage for the testclient was 100% because it was in a hot loop. I added a 500ms delay. Feel free to modify this as you'd like.

chadnickbok commented 7 years ago

Lets switch this down to 50ms, to make sure things don't go too slowly during handshaking. Other than that looks great :)

mo3rfan commented 7 years ago

Done.