| 1 | if (process.env.EIO_CLIENT === "3") { |
| 2 | // we need the WebSocket object provided by the "ws" library to test the SSL certs and HTTP headers so we hide the now built-in WebSocket constructor |
| 3 | // ref: https://nodejs.org/api/globals.html#class-websocket |
| 4 | global.WebSocket = null; |