MCPcopy
hub / github.com/socketio/socket.io / common.js

File common.js

packages/engine.io/test/common.js:None–None  ·  packages/engine.io/test/common.js

Source from the content-addressed store, hash-verified

1if (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;

Callers

nothing calls this directly

Calls 7

fnFunction · 0.85
listenFunction · 0.85
doneFunction · 0.85
listenMethod · 0.80
AppFunction · 0.50
attachMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected