Better socket support and skipConsole 4 JsConsole
Uses global.io if no socket is provided