mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
- Make sure `socket.id` is defined on connect - Make sure `socket.id` is cleared on disconnect - Make sure `socket.id` is updated on reconnect
20 lines
423 B
JavaScript
20 lines
423 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;
|
|
|
|
require('./url');
|
|
|
|
// browser only tests
|
|
if (env.browser) {
|
|
require('./connection');
|
|
require('./socket');
|
|
}
|
|
|