Chrome 开发者工具模拟 WebSocket 弱网环境

Chrome WebSocket 大约 959 字

结论

目前开发者工具对于WebSocket的弱网环境还没有支持,更改ThrottlingWebSocket建立连接时有用,建立连接后不起作用。

相关 Bug

https://bugs.chromium.org/p/chromium/issues/detail?id=423246

替代方法

可使用JMeterWebSocket插件测试,配合更改配置文件cps模拟弱网。

2021-09-23 更新

历时7年。

Chromium论坛留言看到,问题已经被修复了,将在Chrome 96版本中发布。

Comment 79 by danilsomsikov@google.com on Tue, Sep 21, 2021, 9:22 PM GMT+8 (a day ago)
Status: Fixed (was: Started)

Comment 80 by mkhah...@gmail.com on Tue, Sep 21, 2021, 9:35 PM GMT+8 (a day ago)
Wow finally, after 7 years!! Thanks
In what version would it be available?

Comment 81 by danilsomsikov@google.com on Tue, Sep 21, 2021, 9:44 PM GMT+8 (a day ago)
I think this has just made it to 96

Comment 82 by mrj...@googlemail.com on Tue, Sep 21, 2021, 9:56 PM GMT+8 (a day ago)
Unbelievable!!!! THANKS!!!

Comment 83 by dgarc...@gmail.com on Tue, Sep 21, 2021, 11:50 PM GMT+8 (a day ago)
👏🏻👏🏻👏🏻👏🏻

Comment 84 by might...@gmail.com on Wed, Sep 22, 2021, 8:44 AM GMT+8 (a day ago)
Thank you, Danil.
阅读 111 · 发布于 2021-09-13

————        END        ————

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批