Disable Websockets

Disables websockets

作者
csalvato
日安装量
0
总安装量
4,211
评分
2 0 0
版本
1.0
创建于
2021-02-08
更新于
2021-02-08
大小
1.3 KB
许可证
暂无
适用于
所有网站

This is a script that you can use to enable or disable WebSockets. Useful for developing websites that use WebSockets, when you want to test the case where a connection cannot be established.

Heavily inspired by the code from this Stack Overflow answer: https://stackoverflow.com/questions/30912854/is-it-possible-to-temporarily-disable-a-websockets-connection-in-a-local-server