Disable Websockets

Disables websockets

Аўтар
csalvato
Усталяванняў за дзень
0
Усяго ўсталяванняў
4,246
Рэйтынг
2 0 0
Версія
1.0
Створаны
08.02.2021
Абноўлены
08.02.2021
Памер
1.3 КБ
Ліцэнзія
Н/Д
Ужываецца на
Усе сайты

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