import Defaults from '../entities/Defaults.js'; import Client from '../dao/client.js'; import Server from '../dao/socketServer.js'; import util from 'util'; class IPC{ constructor(){ } //public members config=new Defaults; of={}; server=false; //protected methods get connectTo(){ return connect; } get connectToNet(){ return connectNet; } get disconnect(){ return disconnect } get serve(){ return serve; } get serveNet(){ return serveNet; } get log(){ return log; } set connectTo(value){ return connect; } set connectToNet(value){ return connectNet; } set disconnect(value){ return disconnect } set serve(value){ return serve; } set serveNet(value){ return serveNet; } set log(value){ return log; } } function log(...args){ if(this.config.silent){ return; } for(let i=0, count=args.length; i