Files
awx/awx/ui/static/lib/socket.io-client.old/test/index.js
Chris Houseknecht 0c336728f4 Socket.io
Downgraded library to 0.9.16. Version 1 and above requires CORS to be enabled on the server side socket port. If it's not enabled, the OPTIONS request fails.
2014-08-28 15:08:26 -04:00

22 lines
439 B
JavaScript

var env = require('./support/env');
// whitelist some globals to avoid warnings
global.__eio = null;
global.___eio = null;
global.WEB_SOCKET_LOGGER = null;
global.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR = null;
global.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION = null;
global.WEB_SOCKET_SWF_LOCATION = null;
// node only tests
if (env.node) {
require('./url');
}
// browser only tests
if (env.browser) {
require('./connection');
}