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