Disable Websockets

Disables websockets

Forfatter
csalvato
Daglige installasjoner
0
Totale installasjoner
4 076
Vurderinger
2 0 0
Versjon
1.0
Lagd
08.02.2021
Oppdatert
08.02.2021
Lisens
I/T
Gjelder
Alle sider

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