var os = require('os'), util = require('util'), colors = require('colors'), pubsub = require('event-pubsub'), eventParser = require('./lib/eventParser.js'), Client = require('./lib/client.js'), Server = require('./lib/socketServer.js'); colors.setTheme( { good : 'green', notice : 'yellow', warn : 'red', error : 'redBG', debug : 'magenta', variable: 'cyan', data : 'blue' } ); var defaults={ appspace : 'app.', socketRoot : '/tmp/', networkHost : 'localhost', networkPort : 8000, id : os.hostname(), encoding : 'utf8', silent : false, maxConnections : 100, retry : 500, stopRetrying : false, } var ipc = { config : defaults, connectTo : connect, connectToNet: connectNet, disconnect : disconnect, serve : serve, serveNet : serveNet, of : {}, server : false, log : log } function log(){ if(ipc.config.silent) return; var args=Array.prototype.slice.call(arguments); for(var i=0, count=args.length; i