Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Throttling network speed for WebSockets

We are doing performance testing on our WebSockets web app. As our app is used in Africa, we need to also test it on very slow connection speeds.

Chrome's network throttling feature works great for HTTP traffic (HTML, CSS, JS, etc. files), but it doesn't seem to be throttling the WebSocket traffic. It would be great if we could throttle that somehow too.

like image 955
André Haupt Avatar asked Feb 08 '16 19:02

André Haupt


1 Answers

If you are using Linux, have a look on traffic shaping using "tc" command. You can also use it to slow a connection down. Doing it in network low level stack is better than doing it in server. You can also use random drops etc. with tc.

like image 127
recycler Avatar answered Oct 07 '22 17:10

recycler