The patch for global this which originally prompted this fork was accepted and published upstream, so this fork is now deprecated. Please update your package to websocket@1.0.31.
web3-js/WebSocket-Node
[deprecated] Target branch merged upstream, please use websocket@1.0.31
JavaScriptApache-2.0