Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neodigm/fe141d060bd3f0e022e1c4bc076496c5 to your computer and use it in GitHub Desktop.
Save neodigm/fe141d060bd3f0e022e1c4bc076496c5 to your computer and use it in GitHub Desktop.
(function() {
if (window) {
delete window.WebSocket;
if ('WebSocket' in window) {
window.WebSocket = undefined;
}
console.log('WebSocket support disabled');
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment