INNER CODE UNIT · JavaScript
Class
moddio/taro · engine/components/network/net.io/net.io-server/index.js:30
var Class = function () { };
// TODO: Add parameters to all the doc comments below.
/**
* Provides logging capabilities to all Class instances.
*/
var log = function (text, type, obj) {
var indent = '';
var i;
var stack;
if (!NetIo._debug.trace.indentLevel) { NetIo._debug.trace.indentLevel = 0; }
for (i = 0; i < NetIo._debug.trace.indentLevel; i++) {
indent += ' ';
}
type = type || 'log';
if (type === 'error') {