diff --git a/dao/client.js b/dao/client.js index 6ac7b81..31ba922 100644 --- a/dao/client.js +++ b/dao/client.js @@ -3,26 +3,29 @@ const net = require('net'), tls = require('tls'), eventParser = require('./eventParser.js'), - Pubsub = require('event-pubsub'), + Events = require('event-pubsub'), Message = require('js-message'), fs = require('fs'), Queue = require('js-queue'); -function init(config,log){ - let client={ - config : config, - queue : new Queue, - socket : false, - connect : connect, - emit : emit, - log : log, - retriesRemaining:config.maxRetries||0, - explicitlyDisconnected: false - }; - - new Pubsub(client); - - return client; +class Client extends Events{ + constructor(config,log){ + super(); + Object.assign( + this, + { + Client : Client, + config : config, + queue : new Queue, + socket : false, + connect : connect, + emit : emit, + log : log, + retriesRemaining:config.maxRetries||0, + explicitlyDisconnected: false + } + ); + } } function emit(type,data){ @@ -122,7 +125,7 @@ function connect(){ 'error', function(err){ client.log('\n\n######\nerror: ', err); - client.trigger('error', err); + client.publish('error', err); } ); @@ -130,7 +133,7 @@ function connect(){ client.socket.on( 'connect', function connectionMade(){ - client.trigger('connect'); + client.publish('connect'); client.retriesRemaining=client.config.maxRetries; client.log('retrying reset'); } @@ -149,7 +152,7 @@ function connect(){ client.explicitlyDisconnected ){ - client.trigger('disconnect'); + client.publish('disconnect'); client.log( (client.config.id), 'exceeded connection rety amount of', @@ -157,7 +160,7 @@ function connect(){ ); client.socket.destroy(); - client.trigger('destroy'); + client.publish('destroy'); client=undefined; return; @@ -171,7 +174,7 @@ function connect(){ client.config.retry ); - client.trigger('disconnect'); + client.publish('disconnect'); } ); @@ -180,7 +183,7 @@ function connect(){ function(data) { client.log('## received events ##'); if(client.config.rawBuffer){ - client.trigger( + client.publish( 'data', new Buffer(data,client.config.encoding) ); @@ -212,7 +215,7 @@ function connect(){ message.load(events[i]); client.log('detected event', message.type, message.data); - client.trigger( + client.publish( message.type, message.data ); @@ -227,4 +230,4 @@ function connect(){ ); } -module.exports=init; +module.exports=Client; diff --git a/dao/socketServer.js b/dao/socketServer.js index 9b5124b..a5ed762 100644 --- a/dao/socketServer.js +++ b/dao/socketServer.js @@ -5,9 +5,58 @@ const net = require('net'), fs = require('fs'), dgram = require('dgram'), eventParser = require('./eventParser.js'), - Pubsub = require('event-pubsub'), + Events = require('event-pubsub'), Message = require('js-message'); +class Server extends Events{ + constructor(path,config,log,port){ + super(); + Object.assign( + this, + { + config : config, + path : path, + port : port, + udp4 : false, + udp6 : false, + log : log, + server : false, + sockets : [], + emit : emit, + broadcast : broadcast + } + ); + + this.on( + 'close', + serverClosed.bind(this) + ); + } + + onStart(socket){ + this.trigger( + 'start', + socket + ); + } + + stop(){ + this.server.close(); + } + + start(){ + if(!this.path){ + this.log('Socket Server Path not specified, refusing to start'); + return; + } + + fs.unlink( + this.path, + startServer.bind(this) + ); + } +} + function emit(socket, type, data){ this.log('dispatching event to socket', ' : ', type, data); @@ -63,312 +112,278 @@ function broadcast(type,data){ } } -function init(path,config,log,port){ - let server={ - config : config, - path : path, - port : port, - udp4 : false, - udp6 : false, - log : log, - server : false, - sockets : [], - emit : emit, - broadcast : broadcast, - onStart : function onStart(socket){ - this.trigger( - 'start', - socket - ); - }, - stop:function stop(){ - server.server.close(); - }, - start : function start(){ - if(!this.path){ - server.log('Socket Server Path not specified, refusing to start'); - return; +function serverClosed(){ + for(let i=0, count=this.sockets.length; i0){ - let message=new Message; - message.load(data.shift()); - - server.log('received event of : ',message.type,message.data); - - if(message.data.id){ - sock.id=message.data.id; - } - - server.trigger( - message.type, - message.data, - sock - ); - } - } - ); - - socket.on( - 'message', - function(msg,rinfo) { - if (!rinfo){ - return; - } - - server.log('Received UDP message from ', rinfo.address, rinfo.port); - let data; - - if(server.config.rawSocket){ - data=new Buffer(msg,server.config.encoding); - }else{ - data=msg.toString(); - } - socket.emit('data',data,rinfo); - } - ); - - server.trigger( - 'connect', - socket - ); - - if(server.config.rawBuffer){ - return; - } - } - - function started(socket){ - server.onStart(socket); - } - - if(!port){ - server.log('starting server as', 'Unix || Windows Socket'); - if (process.platform ==='win32'){ - server.path = server.path.replace(/^\//, ''); - server.path = server.path.replace(/\//g, '-'); - server.path= `\\\\.\\pipe\\${server.path}`; - } - - server.server.listen( - server.path, - started - ); - - return; - } - - if(!server.udp4 && !server.udp6){ - server.log('starting server as', (server.config.tls?'TLS':'TCP')); - server.server.listen( - server.port, - server.path, - started - ); - return; - } - - server.log('starting server as',((server.udp4)? 'udp4':'udp6')); - server.server.bind( - server.port, - server.path - ); - - started( - { - address : server.path, - port : server.port - } - ); - } - ); } - }; - new Pubsub(server); + if(socket.id){ + destroyedSocketId=socket.id; + } - server.on( + this.log('socket disconnected',destroyedSocketId.toString()); + + if(socket && socket.destroy){ + socket.destroy(); + } + + this.sockets.splice(i,1); + + this.publish('socket.disconnected', socket, destroyedSocketId); + + return; + } +} + +function gotData(socket,data,UDPSocket){ + let sock=((this.udp4 || this.udp6)? UDPSocket : socket); + if(this.config.rawBuffer){ + data=new Buffer(data,this.config.encoding); + this.publish( + 'data', + data, + sock + ); + return; + } + + if(!this.ipcBuffer){ + this.ipcBuffer=''; + } + + data=(this.ipcBuffer+=data); + + if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){ + this.log('Messages are large, You may want to consider smaller messages.'); + return; + } + + this.ipcBuffer=''; + + data=eventParser.parse(data); + + while(data.length>0){ + let message=new Message; + message.load(data.shift()); + + this.log('received event of : ',message.type,message.data); + + if(message.data.id){ + sock.id=message.data.id; + } + + this.publish( + message.type, + message.data, + sock + ); + } +} + +function socketClosed(socket){ + this.publish( 'close', - function(){ - for(let i=0, count=server.sockets.length; i=2.1.2", + "event-pubsub": ">=4.0.0", "js-message": ">=1.0.5", "js-queue": ">=1.0.0", "node-cmd": ">=1.1.1" diff --git a/spec/coverage/coverage.json b/spec/coverage/coverage.json index 40b44e2..fdd32a3 100644 --- a/spec/coverage/coverage.json +++ b/spec/coverage/coverage.json @@ -1 +1 @@ -{"/home/ssmp/git/node-ipc/node-ipc.js":{"path":"/home/ssmp/git/node-ipc/node-ipc.js","s":{"1":1,"2":1,"3":1,"4":1},"b":{},"f":{"1":1},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":15},"end":{"line":6,"column":17}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":41}},"2":{"start":{"line":7,"column":8},"end":{"line":7,"column":16}},"3":{"start":{"line":9,"column":8},"end":{"line":17,"column":9}},"4":{"start":{"line":21,"column":0},"end":{"line":21,"column":29}}},"branchMap":{}},"/home/ssmp/git/node-ipc/services/IPC.js":{"path":"/home/ssmp/git/node-ipc/services/IPC.js","s":{"1":1,"2":1,"3":1,"4":114,"5":0,"6":114,"7":114,"8":372,"9":344,"10":28,"11":114,"12":1,"13":7,"14":0,"15":7,"16":7,"17":7,"18":7,"19":7,"20":7,"21":1,"22":1,"23":0,"24":0,"25":1,"26":0,"27":0,"28":1,"29":0,"30":1,"31":1,"32":1,"33":1,"34":3,"35":1,"36":1,"37":1,"38":1,"39":3,"40":1,"41":1,"42":1,"43":1,"44":3,"45":2,"46":2,"47":3,"48":0,"49":0,"50":0,"51":0,"52":3,"53":0,"54":0,"55":0,"56":3,"57":0,"58":0,"59":0,"60":3,"61":1,"62":1,"63":3,"64":0,"65":0,"66":3,"67":0,"68":3,"69":3,"70":2,"71":2,"72":0,"73":3,"74":1,"75":4,"76":2,"77":2,"78":4,"79":0,"80":4,"81":0,"82":0,"83":4,"84":2,"85":2,"86":4,"87":0,"88":0,"89":0,"90":0,"91":0,"92":4,"93":4,"94":4,"95":4,"96":4,"97":1,"98":3,"99":0,"100":0,"101":3,"102":3,"103":3,"104":3,"105":3,"106":0,"107":0,"108":0,"109":3,"110":3,"111":3,"112":3,"113":0,"114":0,"115":3,"116":0,"117":0,"118":3,"119":0,"120":0,"121":3,"122":0,"123":3,"124":0,"125":0,"126":0,"127":0,"128":0,"129":3,"130":3,"131":3,"132":3,"133":3,"134":3,"135":1},"b":{"1":[0,114],"2":[344,28],"3":[0,7],"4":[7,0],"5":[7,0],"6":[0,1],"7":[0,1],"8":[0,1],"9":[1,2],"10":[1,2],"11":[2,1],"12":[0,3],"13":[3,3],"14":[0,3],"15":[0,3],"16":[1,2],"17":[0,3],"18":[0,3],"19":[2,1],"20":[0,2],"21":[2,1],"22":[2,2],"23":[0,4],"24":[0,4],"25":[2,2],"26":[0,4],"27":[0,0],"28":[0,3],"29":[3,0],"30":[0,3],"31":[3,0],"32":[0,3],"33":[0,3],"34":[0,3],"35":[0,3],"36":[0,3],"37":[0,0]},"f":{"1":1,"2":114,"3":7,"4":1,"5":0,"6":3,"7":4,"8":3},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":15},"end":{"line":9,"column":17}}},"2":{"name":"log","line":64,"loc":{"start":{"line":64,"column":0},"end":{"line":64,"column":14}}},"3":{"name":"disconnect","line":90,"loc":{"start":{"line":90,"column":0},"end":{"line":90,"column":23}}},"4":{"name":"serve","line":107,"loc":{"start":{"line":107,"column":0},"end":{"line":107,"column":29}}},"5":{"name":"emptyCallback","line":137,"loc":{"start":{"line":137,"column":0},"end":{"line":137,"column":24}}},"6":{"name":"serveNet","line":141,"loc":{"start":{"line":141,"column":0},"end":{"line":141,"column":45}}},"7":{"name":"connect","line":218,"loc":{"start":{"line":218,"column":0},"end":{"line":218,"column":34}}},"8":{"name":"connectNet","line":267,"loc":{"start":{"line":267,"column":0},"end":{"line":267,"column":42}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":27}},"2":{"start":{"line":10,"column":8},"end":{"line":60,"column":10}},"3":{"start":{"line":64,"column":0},"end":{"line":88,"column":1}},"4":{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},"5":{"start":{"line":66,"column":8},"end":{"line":66,"column":15}},"6":{"start":{"line":69,"column":4},"end":{"line":69,"column":53}},"7":{"start":{"line":71,"column":4},"end":{"line":83,"column":5}},"8":{"start":{"line":72,"column":8},"end":{"line":74,"column":9}},"9":{"start":{"line":73,"column":12},"end":{"line":73,"column":21}},"10":{"start":{"line":76,"column":8},"end":{"line":82,"column":10}},"11":{"start":{"line":85,"column":4},"end":{"line":87,"column":6}},"12":{"start":{"line":90,"column":0},"end":{"line":105,"column":1}},"13":{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},"14":{"start":{"line":92,"column":8},"end":{"line":92,"column":15}},"15":{"start":{"line":95,"column":4},"end":{"line":95,"column":44}},"16":{"start":{"line":97,"column":4},"end":{"line":97,"column":29}},"17":{"start":{"line":98,"column":4},"end":{"line":102,"column":5}},"18":{"start":{"line":99,"column":8},"end":{"line":101,"column":9}},"19":{"start":{"line":100,"column":12},"end":{"line":100,"column":41}},"20":{"start":{"line":104,"column":4},"end":{"line":104,"column":23}},"21":{"start":{"line":107,"column":0},"end":{"line":135,"column":1}},"22":{"start":{"line":108,"column":4},"end":{"line":111,"column":5}},"23":{"start":{"line":109,"column":8},"end":{"line":109,"column":22}},"24":{"start":{"line":110,"column":8},"end":{"line":110,"column":19}},"25":{"start":{"line":112,"column":4},"end":{"line":119,"column":5}},"26":{"start":{"line":113,"column":8},"end":{"line":117,"column":10}},"27":{"start":{"line":118,"column":8},"end":{"line":118,"column":72}},"28":{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},"29":{"start":{"line":122,"column":8},"end":{"line":122,"column":31}},"30":{"start":{"line":125,"column":4},"end":{"line":129,"column":6}},"31":{"start":{"line":131,"column":4},"end":{"line":134,"column":6}},"32":{"start":{"line":137,"column":0},"end":{"line":139,"column":1}},"33":{"start":{"line":141,"column":0},"end":{"line":216,"column":1}},"34":{"start":{"line":142,"column":4},"end":{"line":147,"column":5}},"35":{"start":{"line":143,"column":8},"end":{"line":143,"column":25}},"36":{"start":{"line":144,"column":8},"end":{"line":144,"column":21}},"37":{"start":{"line":145,"column":8},"end":{"line":145,"column":18}},"38":{"start":{"line":146,"column":8},"end":{"line":146,"column":19}},"39":{"start":{"line":148,"column":4},"end":{"line":153,"column":5}},"40":{"start":{"line":149,"column":8},"end":{"line":149,"column":22}},"41":{"start":{"line":150,"column":8},"end":{"line":150,"column":22}},"42":{"start":{"line":151,"column":8},"end":{"line":151,"column":19}},"43":{"start":{"line":152,"column":8},"end":{"line":152,"column":19}},"44":{"start":{"line":154,"column":4},"end":{"line":161,"column":5}},"45":{"start":{"line":155,"column":8},"end":{"line":159,"column":10}},"46":{"start":{"line":160,"column":8},"end":{"line":160,"column":37}},"47":{"start":{"line":162,"column":4},"end":{"line":167,"column":5}},"48":{"start":{"line":163,"column":8},"end":{"line":163,"column":22}},"49":{"start":{"line":164,"column":8},"end":{"line":164,"column":35}},"50":{"start":{"line":165,"column":8},"end":{"line":165,"column":19}},"51":{"start":{"line":166,"column":8},"end":{"line":166,"column":37}},"52":{"start":{"line":169,"column":4},"end":{"line":173,"column":5}},"53":{"start":{"line":170,"column":8},"end":{"line":170,"column":25}},"54":{"start":{"line":171,"column":8},"end":{"line":171,"column":21}},"55":{"start":{"line":172,"column":8},"end":{"line":172,"column":19}},"56":{"start":{"line":174,"column":4},"end":{"line":178,"column":5}},"57":{"start":{"line":175,"column":8},"end":{"line":175,"column":22}},"58":{"start":{"line":176,"column":8},"end":{"line":176,"column":22}},"59":{"start":{"line":177,"column":8},"end":{"line":177,"column":19}},"60":{"start":{"line":179,"column":4},"end":{"line":186,"column":5}},"61":{"start":{"line":180,"column":8},"end":{"line":184,"column":10}},"62":{"start":{"line":185,"column":8},"end":{"line":185,"column":37}},"63":{"start":{"line":188,"column":4},"end":{"line":191,"column":5}},"64":{"start":{"line":189,"column":8},"end":{"line":189,"column":25}},"65":{"start":{"line":190,"column":8},"end":{"line":190,"column":22}},"66":{"start":{"line":193,"column":4},"end":{"line":195,"column":5}},"67":{"start":{"line":194,"column":8},"end":{"line":194,"column":31}},"68":{"start":{"line":197,"column":4},"end":{"line":202,"column":6}},"69":{"start":{"line":204,"column":4},"end":{"line":210,"column":5}},"70":{"start":{"line":205,"column":8},"end":{"line":205,"column":34}},"71":{"start":{"line":206,"column":8},"end":{"line":209,"column":9}},"72":{"start":{"line":208,"column":12},"end":{"line":208,"column":43}},"73":{"start":{"line":212,"column":4},"end":{"line":215,"column":6}},"74":{"start":{"line":218,"column":0},"end":{"line":265,"column":1}},"75":{"start":{"line":219,"column":4},"end":{"line":222,"column":5}},"76":{"start":{"line":220,"column":8},"end":{"line":220,"column":22}},"77":{"start":{"line":221,"column":8},"end":{"line":221,"column":19}},"78":{"start":{"line":224,"column":4},"end":{"line":226,"column":5}},"79":{"start":{"line":225,"column":8},"end":{"line":225,"column":31}},"80":{"start":{"line":228,"column":4},"end":{"line":234,"column":5}},"81":{"start":{"line":229,"column":8},"end":{"line":232,"column":10}},"82":{"start":{"line":233,"column":8},"end":{"line":233,"column":15}},"83":{"start":{"line":236,"column":4},"end":{"line":243,"column":5}},"84":{"start":{"line":237,"column":8},"end":{"line":241,"column":10}},"85":{"start":{"line":242,"column":8},"end":{"line":242,"column":60}},"86":{"start":{"line":245,"column":4},"end":{"line":256,"column":5}},"87":{"start":{"line":246,"column":8},"end":{"line":254,"column":9}},"88":{"start":{"line":247,"column":12},"end":{"line":251,"column":14}},"89":{"start":{"line":252,"column":12},"end":{"line":252,"column":23}},"90":{"start":{"line":253,"column":12},"end":{"line":253,"column":19}},"91":{"start":{"line":255,"column":8},"end":{"line":255,"column":37}},"92":{"start":{"line":258,"column":4},"end":{"line":258,"column":51}},"93":{"start":{"line":259,"column":4},"end":{"line":259,"column":24}},"94":{"start":{"line":260,"column":4},"end":{"line":260,"column":28}},"95":{"start":{"line":262,"column":4},"end":{"line":262,"column":26}},"96":{"start":{"line":264,"column":4},"end":{"line":264,"column":19}},"97":{"start":{"line":267,"column":0},"end":{"line":336,"column":1}},"98":{"start":{"line":268,"column":4},"end":{"line":274,"column":5}},"99":{"start":{"line":269,"column":8},"end":{"line":272,"column":10}},"100":{"start":{"line":273,"column":8},"end":{"line":273,"column":15}},"101":{"start":{"line":275,"column":4},"end":{"line":279,"column":5}},"102":{"start":{"line":276,"column":8},"end":{"line":276,"column":22}},"103":{"start":{"line":277,"column":8},"end":{"line":277,"column":18}},"104":{"start":{"line":278,"column":8},"end":{"line":278,"column":19}},"105":{"start":{"line":280,"column":4},"end":{"line":284,"column":5}},"106":{"start":{"line":281,"column":8},"end":{"line":281,"column":22}},"107":{"start":{"line":282,"column":8},"end":{"line":282,"column":19}},"108":{"start":{"line":283,"column":8},"end":{"line":283,"column":19}},"109":{"start":{"line":285,"column":4},"end":{"line":292,"column":5}},"110":{"start":{"line":286,"column":8},"end":{"line":290,"column":10}},"111":{"start":{"line":291,"column":8},"end":{"line":291,"column":37}},"112":{"start":{"line":294,"column":4},"end":{"line":297,"column":5}},"113":{"start":{"line":295,"column":8},"end":{"line":295,"column":22}},"114":{"start":{"line":296,"column":8},"end":{"line":296,"column":19}},"115":{"start":{"line":298,"column":4},"end":{"line":305,"column":5}},"116":{"start":{"line":299,"column":8},"end":{"line":303,"column":10}},"117":{"start":{"line":304,"column":8},"end":{"line":304,"column":37}},"118":{"start":{"line":307,"column":4},"end":{"line":310,"column":5}},"119":{"start":{"line":308,"column":8},"end":{"line":308,"column":25}},"120":{"start":{"line":309,"column":8},"end":{"line":309,"column":23}},"121":{"start":{"line":311,"column":4},"end":{"line":313,"column":5}},"122":{"start":{"line":312,"column":8},"end":{"line":312,"column":31}},"123":{"start":{"line":315,"column":4},"end":{"line":326,"column":5}},"124":{"start":{"line":316,"column":8},"end":{"line":324,"column":9}},"125":{"start":{"line":317,"column":12},"end":{"line":321,"column":14}},"126":{"start":{"line":322,"column":12},"end":{"line":322,"column":23}},"127":{"start":{"line":323,"column":12},"end":{"line":323,"column":19}},"128":{"start":{"line":325,"column":8},"end":{"line":325,"column":37}},"129":{"start":{"line":328,"column":4},"end":{"line":328,"column":51}},"130":{"start":{"line":329,"column":4},"end":{"line":329,"column":24}},"131":{"start":{"line":330,"column":4},"end":{"line":330,"column":28}},"132":{"start":{"line":331,"column":4},"end":{"line":331,"column":28}},"133":{"start":{"line":333,"column":4},"end":{"line":333,"column":26}},"134":{"start":{"line":335,"column":4},"end":{"line":335,"column":19}},"135":{"start":{"line":338,"column":0},"end":{"line":338,"column":19}}},"branchMap":{"1":{"line":65,"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":65,"column":4}},{"start":{"line":65,"column":4},"end":{"line":65,"column":4}}]},"2":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":8},"end":{"line":72,"column":8}},{"start":{"line":72,"column":8},"end":{"line":72,"column":8}}]},"3":{"line":91,"type":"if","locations":[{"start":{"line":91,"column":4},"end":{"line":91,"column":4}},{"start":{"line":91,"column":4},"end":{"line":91,"column":4}}]},"4":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"5":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":99,"column":8}},{"start":{"line":99,"column":8},"end":{"line":99,"column":8}}]},"6":{"line":108,"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":108,"column":4}},{"start":{"line":108,"column":4},"end":{"line":108,"column":4}}]},"7":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":4},"end":{"line":112,"column":4}},{"start":{"line":112,"column":4},"end":{"line":112,"column":4}}]},"8":{"line":121,"type":"if","locations":[{"start":{"line":121,"column":4},"end":{"line":121,"column":4}},{"start":{"line":121,"column":4},"end":{"line":121,"column":4}}]},"9":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":4},"end":{"line":142,"column":4}},{"start":{"line":142,"column":4},"end":{"line":142,"column":4}}]},"10":{"line":148,"type":"if","locations":[{"start":{"line":148,"column":4},"end":{"line":148,"column":4}},{"start":{"line":148,"column":4},"end":{"line":148,"column":4}}]},"11":{"line":154,"type":"if","locations":[{"start":{"line":154,"column":4},"end":{"line":154,"column":4}},{"start":{"line":154,"column":4},"end":{"line":154,"column":4}}]},"12":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"13":{"line":162,"type":"binary-expr","locations":[{"start":{"line":162,"column":7},"end":{"line":162,"column":33}},{"start":{"line":162,"column":37},"end":{"line":162,"column":63}}]},"14":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":4},"end":{"line":169,"column":4}},{"start":{"line":169,"column":4},"end":{"line":169,"column":4}}]},"15":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":174,"column":4}},{"start":{"line":174,"column":4},"end":{"line":174,"column":4}}]},"16":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":4},"end":{"line":179,"column":4}},{"start":{"line":179,"column":4},"end":{"line":179,"column":4}}]},"17":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":4},"end":{"line":188,"column":4}},{"start":{"line":188,"column":4},"end":{"line":188,"column":4}}]},"18":{"line":193,"type":"if","locations":[{"start":{"line":193,"column":4},"end":{"line":193,"column":4}},{"start":{"line":193,"column":4},"end":{"line":193,"column":4}}]},"19":{"line":204,"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":4}},{"start":{"line":204,"column":4},"end":{"line":204,"column":4}}]},"20":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":8},"end":{"line":206,"column":8}},{"start":{"line":206,"column":8},"end":{"line":206,"column":8}}]},"21":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":11},"end":{"line":206,"column":29}},{"start":{"line":206,"column":33},"end":{"line":206,"column":47}}]},"22":{"line":219,"type":"if","locations":[{"start":{"line":219,"column":4},"end":{"line":219,"column":4}},{"start":{"line":219,"column":4},"end":{"line":219,"column":4}}]},"23":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":4},"end":{"line":224,"column":4}},{"start":{"line":224,"column":4},"end":{"line":224,"column":4}}]},"24":{"line":228,"type":"if","locations":[{"start":{"line":228,"column":4},"end":{"line":228,"column":4}},{"start":{"line":228,"column":4},"end":{"line":228,"column":4}}]},"25":{"line":236,"type":"if","locations":[{"start":{"line":236,"column":4},"end":{"line":236,"column":4}},{"start":{"line":236,"column":4},"end":{"line":236,"column":4}}]},"26":{"line":245,"type":"if","locations":[{"start":{"line":245,"column":4},"end":{"line":245,"column":4}},{"start":{"line":245,"column":4},"end":{"line":245,"column":4}}]},"27":{"line":246,"type":"if","locations":[{"start":{"line":246,"column":8},"end":{"line":246,"column":8}},{"start":{"line":246,"column":8},"end":{"line":246,"column":8}}]},"28":{"line":268,"type":"if","locations":[{"start":{"line":268,"column":4},"end":{"line":268,"column":4}},{"start":{"line":268,"column":4},"end":{"line":268,"column":4}}]},"29":{"line":275,"type":"if","locations":[{"start":{"line":275,"column":4},"end":{"line":275,"column":4}},{"start":{"line":275,"column":4},"end":{"line":275,"column":4}}]},"30":{"line":280,"type":"if","locations":[{"start":{"line":280,"column":4},"end":{"line":280,"column":4}},{"start":{"line":280,"column":4},"end":{"line":280,"column":4}}]},"31":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"32":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":4},"end":{"line":294,"column":4}},{"start":{"line":294,"column":4},"end":{"line":294,"column":4}}]},"33":{"line":298,"type":"if","locations":[{"start":{"line":298,"column":4},"end":{"line":298,"column":4}},{"start":{"line":298,"column":4},"end":{"line":298,"column":4}}]},"34":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":4},"end":{"line":307,"column":4}},{"start":{"line":307,"column":4},"end":{"line":307,"column":4}}]},"35":{"line":311,"type":"if","locations":[{"start":{"line":311,"column":4},"end":{"line":311,"column":4}},{"start":{"line":311,"column":4},"end":{"line":311,"column":4}}]},"36":{"line":315,"type":"if","locations":[{"start":{"line":315,"column":4},"end":{"line":315,"column":4}},{"start":{"line":315,"column":4},"end":{"line":315,"column":4}}]},"37":{"line":316,"type":"if","locations":[{"start":{"line":316,"column":8},"end":{"line":316,"column":8}},{"start":{"line":316,"column":8},"end":{"line":316,"column":8}}]}}},"/home/ssmp/git/node-ipc/entities/Defaults.js":{"path":"/home/ssmp/git/node-ipc/entities/Defaults.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":0,"9":1,"10":1},"b":{"1":[0,1],"2":[0,1],"3":[1,1,0]},"f":{"1":1,"2":1},"fnMap":{"1":{"name":"(anonymous_1)","line":22,"loc":{"start":{"line":22,"column":15},"end":{"line":22,"column":17}}},"2":{"name":"getIPType","line":125,"loc":{"start":{"line":125,"column":0},"end":{"line":125,"column":21}}}},"statementMap":{"1":{"start":{"line":9,"column":0},"end":{"line":9,"column":25}},"2":{"start":{"line":24,"column":8},"end":{"line":113,"column":10}},"3":{"start":{"line":115,"column":8},"end":{"line":115,"column":73}},"4":{"start":{"line":125,"column":0},"end":{"line":137,"column":1}},"5":{"start":{"line":126,"column":4},"end":{"line":126,"column":53}},"6":{"start":{"line":127,"column":4},"end":{"line":127,"column":20}},"7":{"start":{"line":128,"column":4},"end":{"line":135,"column":5}},"8":{"start":{"line":132,"column":8},"end":{"line":134,"column":20}},"9":{"start":{"line":136,"column":4},"end":{"line":136,"column":18}},"10":{"start":{"line":139,"column":0},"end":{"line":139,"column":24}}},"branchMap":{"1":{"line":115,"type":"cond-expr","locations":[{"start":{"line":115,"column":53},"end":{"line":115,"column":58}},{"start":{"line":115,"column":61},"end":{"line":115,"column":72}}]},"2":{"line":128,"type":"if","locations":[{"start":{"line":128,"column":4},"end":{"line":128,"column":4}},{"start":{"line":128,"column":4},"end":{"line":128,"column":4}}]},"3":{"line":128,"type":"binary-expr","locations":[{"start":{"line":128,"column":8},"end":{"line":128,"column":25}},{"start":{"line":129,"column":11},"end":{"line":129,"column":43}},{"start":{"line":130,"column":11},"end":{"line":130,"column":39}}]}}},"/home/ssmp/git/node-ipc/dao/client.js":{"path":"/home/ssmp/git/node-ipc/dao/client.js","s":{"1":1,"2":1,"3":7,"4":7,"5":7,"6":1,"7":7,"8":7,"9":7,"10":7,"11":7,"12":0,"13":7,"14":7,"15":1,"16":1,"17":6,"18":1,"19":6,"20":6,"21":1,"22":13,"23":13,"24":13,"25":0,"26":0,"27":13,"28":7,"29":7,"30":7,"31":0,"32":0,"33":0,"34":7,"35":6,"36":6,"37":6,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":13,"53":13,"54":10,"55":10,"56":13,"57":3,"58":3,"59":3,"60":13,"61":13,"62":13,"63":7,"64":7,"65":7,"66":7,"67":7,"68":7,"69":6,"70":6,"71":6,"72":6,"73":13,"74":7,"75":7,"76":0,"77":0,"78":0,"79":0,"80":0,"81":7,"82":7,"83":7,"84":7,"85":0,"86":0,"87":7,"88":7,"89":7,"90":7,"91":7,"92":7,"93":7,"94":7,"95":7,"96":0,"97":7,"98":1},"b":{"1":[7,0],"2":[0,7],"3":[1,6],"4":[0,13],"5":[7,6],"6":[0,7],"7":[7,0],"8":[6,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[7,6],"14":[13,8,6],"15":[0,7],"16":[0,0],"17":[7,0],"18":[0,7],"19":[7,7],"20":[0,7]},"f":{"1":7,"2":7,"3":6,"4":13,"5":10,"6":3,"7":13,"8":6,"9":7},"fnMap":{"1":{"name":"init","line":11,"loc":{"start":{"line":11,"column":0},"end":{"line":11,"column":25}}},"2":{"name":"emit","line":28,"loc":{"start":{"line":28,"column":0},"end":{"line":28,"column":24}}},"3":{"name":"syncEmit","line":51,"loc":{"start":{"line":51,"column":0},"end":{"line":51,"column":26}}},"4":{"name":"connect","line":56,"loc":{"start":{"line":56,"column":0},"end":{"line":56,"column":18}}},"5":{"name":"(anonymous_5)","line":123,"loc":{"start":{"line":123,"column":8},"end":{"line":123,"column":21}}},"6":{"name":"connectionMade","line":132,"loc":{"start":{"line":132,"column":8},"end":{"line":132,"column":33}}},"7":{"name":"connectionClosed","line":141,"loc":{"start":{"line":141,"column":8},"end":{"line":141,"column":35}}},"8":{"name":"retryTimeout","line":167,"loc":{"start":{"line":167,"column":16},"end":{"line":167,"column":39}}},"9":{"name":"(anonymous_9)","line":180,"loc":{"start":{"line":180,"column":8},"end":{"line":180,"column":23}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":9,"column":32}},"2":{"start":{"line":11,"column":0},"end":{"line":26,"column":1}},"3":{"start":{"line":12,"column":4},"end":{"line":21,"column":6}},"4":{"start":{"line":23,"column":4},"end":{"line":23,"column":23}},"5":{"start":{"line":25,"column":4},"end":{"line":25,"column":18}},"6":{"start":{"line":28,"column":0},"end":{"line":49,"column":1}},"7":{"start":{"line":29,"column":4},"end":{"line":29,"column":82}},"8":{"start":{"line":31,"column":4},"end":{"line":31,"column":28}},"9":{"start":{"line":32,"column":4},"end":{"line":32,"column":22}},"10":{"start":{"line":33,"column":4},"end":{"line":33,"column":22}},"11":{"start":{"line":35,"column":4},"end":{"line":39,"column":5}},"12":{"start":{"line":36,"column":8},"end":{"line":36,"column":54}},"13":{"start":{"line":38,"column":8},"end":{"line":38,"column":44}},"14":{"start":{"line":41,"column":4},"end":{"line":44,"column":5}},"15":{"start":{"line":42,"column":8},"end":{"line":42,"column":35}},"16":{"start":{"line":43,"column":8},"end":{"line":43,"column":15}},"17":{"start":{"line":46,"column":4},"end":{"line":48,"column":6}},"18":{"start":{"line":51,"column":0},"end":{"line":54,"column":1}},"19":{"start":{"line":52,"column":4},"end":{"line":52,"column":74}},"20":{"start":{"line":53,"column":4},"end":{"line":53,"column":31}},"21":{"start":{"line":56,"column":0},"end":{"line":228,"column":1}},"22":{"start":{"line":58,"column":4},"end":{"line":58,"column":20}},"23":{"start":{"line":60,"column":4},"end":{"line":60,"column":67}},"24":{"start":{"line":61,"column":4},"end":{"line":64,"column":5}},"25":{"start":{"line":62,"column":8},"end":{"line":62,"column":119}},"26":{"start":{"line":63,"column":8},"end":{"line":63,"column":15}},"27":{"start":{"line":66,"column":4},"end":{"line":117,"column":5}},"28":{"start":{"line":67,"column":8},"end":{"line":67,"column":70}},"29":{"start":{"line":69,"column":8},"end":{"line":69,"column":31}},"30":{"start":{"line":71,"column":8},"end":{"line":75,"column":9}},"31":{"start":{"line":72,"column":12},"end":{"line":72,"column":43}},"32":{"start":{"line":73,"column":12},"end":{"line":73,"column":44}},"33":{"start":{"line":74,"column":12},"end":{"line":74,"column":41}},"34":{"start":{"line":76,"column":8},"end":{"line":80,"column":10}},"35":{"start":{"line":82,"column":8},"end":{"line":116,"column":9}},"36":{"start":{"line":83,"column":12},"end":{"line":83,"column":81}},"37":{"start":{"line":84,"column":12},"end":{"line":89,"column":14}},"38":{"start":{"line":91,"column":12},"end":{"line":91,"column":99}},"39":{"start":{"line":92,"column":12},"end":{"line":94,"column":13}},"40":{"start":{"line":93,"column":16},"end":{"line":93,"column":81}},"41":{"start":{"line":95,"column":12},"end":{"line":97,"column":13}},"42":{"start":{"line":96,"column":16},"end":{"line":96,"column":81}},"43":{"start":{"line":98,"column":12},"end":{"line":108,"column":13}},"44":{"start":{"line":99,"column":16},"end":{"line":101,"column":17}},"45":{"start":{"line":100,"column":20},"end":{"line":100,"column":96}},"46":{"start":{"line":102,"column":16},"end":{"line":102,"column":40}},"47":{"start":{"line":103,"column":16},"end":{"line":107,"column":17}},"48":{"start":{"line":104,"column":20},"end":{"line":106,"column":22}},"49":{"start":{"line":110,"column":12},"end":{"line":110,"column":47}},"50":{"start":{"line":111,"column":12},"end":{"line":111,"column":47}},"51":{"start":{"line":113,"column":12},"end":{"line":115,"column":14}},"52":{"start":{"line":119,"column":4},"end":{"line":119,"column":52}},"53":{"start":{"line":121,"column":4},"end":{"line":128,"column":6}},"54":{"start":{"line":124,"column":12},"end":{"line":124,"column":51}},"55":{"start":{"line":125,"column":12},"end":{"line":125,"column":41}},"56":{"start":{"line":130,"column":4},"end":{"line":137,"column":6}},"57":{"start":{"line":133,"column":12},"end":{"line":133,"column":38}},"58":{"start":{"line":134,"column":12},"end":{"line":134,"column":61}},"59":{"start":{"line":135,"column":12},"end":{"line":135,"column":41}},"60":{"start":{"line":139,"column":4},"end":{"line":176,"column":6}},"61":{"start":{"line":142,"column":12},"end":{"line":144,"column":10}},"62":{"start":{"line":146,"column":12},"end":{"line":164,"column":13}},"63":{"start":{"line":152,"column":16},"end":{"line":152,"column":45}},"64":{"start":{"line":153,"column":16},"end":{"line":157,"column":18}},"65":{"start":{"line":159,"column":16},"end":{"line":159,"column":40}},"66":{"start":{"line":160,"column":16},"end":{"line":160,"column":42}},"67":{"start":{"line":161,"column":16},"end":{"line":161,"column":33}},"68":{"start":{"line":163,"column":16},"end":{"line":163,"column":23}},"69":{"start":{"line":166,"column":12},"end":{"line":172,"column":14}},"70":{"start":{"line":168,"column":20},"end":{"line":168,"column":46}},"71":{"start":{"line":169,"column":20},"end":{"line":169,"column":37}},"72":{"start":{"line":174,"column":12},"end":{"line":174,"column":41}},"73":{"start":{"line":178,"column":4},"end":{"line":227,"column":6}},"74":{"start":{"line":181,"column":12},"end":{"line":181,"column":48}},"75":{"start":{"line":182,"column":12},"end":{"line":193,"column":13}},"76":{"start":{"line":183,"column":16},"end":{"line":186,"column":18}},"77":{"start":{"line":187,"column":16},"end":{"line":189,"column":17}},"78":{"start":{"line":188,"column":20},"end":{"line":188,"column":27}},"79":{"start":{"line":191,"column":16},"end":{"line":191,"column":36}},"80":{"start":{"line":192,"column":16},"end":{"line":192,"column":23}},"81":{"start":{"line":195,"column":12},"end":{"line":197,"column":13}},"82":{"start":{"line":196,"column":16},"end":{"line":196,"column":34}},"83":{"start":{"line":199,"column":12},"end":{"line":199,"column":40}},"84":{"start":{"line":201,"column":12},"end":{"line":204,"column":13}},"85":{"start":{"line":202,"column":16},"end":{"line":202,"column":93}},"86":{"start":{"line":203,"column":16},"end":{"line":203,"column":23}},"87":{"start":{"line":206,"column":12},"end":{"line":206,"column":30}},"88":{"start":{"line":208,"column":12},"end":{"line":208,"column":51}},"89":{"start":{"line":209,"column":12},"end":{"line":209,"column":41}},"90":{"start":{"line":210,"column":12},"end":{"line":219,"column":13}},"91":{"start":{"line":211,"column":16},"end":{"line":211,"column":40}},"92":{"start":{"line":212,"column":16},"end":{"line":212,"column":40}},"93":{"start":{"line":214,"column":16},"end":{"line":214,"column":73}},"94":{"start":{"line":215,"column":16},"end":{"line":218,"column":18}},"95":{"start":{"line":221,"column":12},"end":{"line":223,"column":13}},"96":{"start":{"line":222,"column":16},"end":{"line":222,"column":23}},"97":{"start":{"line":225,"column":12},"end":{"line":225,"column":32}},"98":{"start":{"line":230,"column":0},"end":{"line":230,"column":20}}},"branchMap":{"1":{"line":19,"type":"binary-expr","locations":[{"start":{"line":19,"column":25},"end":{"line":19,"column":42}},{"start":{"line":19,"column":44},"end":{"line":19,"column":45}}]},"2":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},{"start":{"line":35,"column":4},"end":{"line":35,"column":4}}]},"3":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":41,"column":4}},{"start":{"line":41,"column":4},"end":{"line":41,"column":4}}]},"4":{"line":61,"type":"if","locations":[{"start":{"line":61,"column":4},"end":{"line":61,"column":4}},{"start":{"line":61,"column":4},"end":{"line":61,"column":4}}]},"5":{"line":66,"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":66,"column":4}},{"start":{"line":66,"column":4},"end":{"line":66,"column":4}}]},"6":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":8}},{"start":{"line":71,"column":8},"end":{"line":71,"column":8}}]},"7":{"line":71,"type":"binary-expr","locations":[{"start":{"line":71,"column":12},"end":{"line":71,"column":39}},{"start":{"line":71,"column":43},"end":{"line":71,"column":83}}]},"8":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":8},"end":{"line":82,"column":8}},{"start":{"line":82,"column":8},"end":{"line":82,"column":8}}]},"9":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":12},"end":{"line":92,"column":12}},{"start":{"line":92,"column":12},"end":{"line":92,"column":12}}]},"10":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":12},"end":{"line":95,"column":12}},{"start":{"line":95,"column":12},"end":{"line":95,"column":12}}]},"11":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":12},"end":{"line":98,"column":12}},{"start":{"line":98,"column":12},"end":{"line":98,"column":12}}]},"12":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":16},"end":{"line":99,"column":16}},{"start":{"line":99,"column":16},"end":{"line":99,"column":16}}]},"13":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":12},"end":{"line":146,"column":12}},{"start":{"line":146,"column":12},"end":{"line":146,"column":12}}]},"14":{"line":147,"type":"binary-expr","locations":[{"start":{"line":147,"column":16},"end":{"line":147,"column":42}},{"start":{"line":148,"column":16},"end":{"line":148,"column":41}},{"start":{"line":149,"column":16},"end":{"line":149,"column":45}}]},"15":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":12},"end":{"line":182,"column":12}},{"start":{"line":182,"column":12},"end":{"line":182,"column":12}}]},"16":{"line":187,"type":"if","locations":[{"start":{"line":187,"column":16},"end":{"line":187,"column":16}},{"start":{"line":187,"column":16},"end":{"line":187,"column":16}}]},"17":{"line":195,"type":"if","locations":[{"start":{"line":195,"column":12},"end":{"line":195,"column":12}},{"start":{"line":195,"column":12},"end":{"line":195,"column":12}}]},"18":{"line":201,"type":"if","locations":[{"start":{"line":201,"column":12},"end":{"line":201,"column":12}},{"start":{"line":201,"column":12},"end":{"line":201,"column":12}}]},"19":{"line":201,"type":"binary-expr","locations":[{"start":{"line":201,"column":15},"end":{"line":201,"column":52}},{"start":{"line":201,"column":56},"end":{"line":201,"column":97}}]},"20":{"line":221,"type":"if","locations":[{"start":{"line":221,"column":12},"end":{"line":221,"column":12}},{"start":{"line":221,"column":12},"end":{"line":221,"column":12}}]}}},"/home/ssmp/git/node-ipc/dao/eventParser.js":{"path":"/home/ssmp/git/node-ipc/dao/eventParser.js","s":{"1":1,"2":1,"3":9,"4":0,"5":9,"6":0,"7":9,"8":9,"9":1,"10":9,"11":9,"12":9,"13":1},"b":{"1":[0,9],"2":[9,0,0],"3":[0,9]},"f":{"1":9,"2":9},"fnMap":{"1":{"name":"formatData","line":9,"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":28}}},"2":{"name":"parseDataEvents","line":21,"loc":{"start":{"line":21,"column":0},"end":{"line":21,"column":30}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":7,"column":2}},"2":{"start":{"line":9,"column":0},"end":{"line":19,"column":1}},"3":{"start":{"line":10,"column":4},"end":{"line":12,"column":5}},"4":{"start":{"line":11,"column":8},"end":{"line":11,"column":24}},"5":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"6":{"start":{"line":14,"column":8},"end":{"line":14,"column":24}},"7":{"start":{"line":17,"column":4},"end":{"line":17,"column":42}},"8":{"start":{"line":18,"column":4},"end":{"line":18,"column":19}},"9":{"start":{"line":21,"column":0},"end":{"line":25,"column":1}},"10":{"start":{"line":22,"column":4},"end":{"line":22,"column":44}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":17}},"12":{"start":{"line":24,"column":4},"end":{"line":24,"column":18}},"13":{"start":{"line":27,"column":0},"end":{"line":27,"column":22}}},"branchMap":{"1":{"line":10,"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":4}},{"start":{"line":10,"column":4},"end":{"line":10,"column":4}}]},"2":{"line":10,"type":"binary-expr","locations":[{"start":{"line":10,"column":7},"end":{"line":10,"column":20}},{"start":{"line":10,"column":24},"end":{"line":10,"column":44}},{"start":{"line":10,"column":48},"end":{"line":10,"column":64}}]},"3":{"line":13,"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}]}}},"/home/ssmp/git/node-ipc/dao/socketServer.js":{"path":"/home/ssmp/git/node-ipc/dao/socketServer.js","s":{"1":1,"2":1,"3":2,"4":2,"5":2,"6":2,"7":2,"8":0,"9":0,"10":2,"11":2,"12":2,"13":0,"14":0,"15":0,"16":2,"17":2,"18":0,"19":1,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":4,"34":4,"35":4,"36":4,"37":0,"38":0,"39":4,"40":4,"41":4,"42":2,"43":2,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":2,"62":2,"63":2,"64":0,"65":0,"66":0,"67":2,"68":2,"69":2,"70":2,"71":4,"72":0,"73":0,"74":4,"75":1,"76":4,"77":4,"78":2,"79":4,"80":4,"81":2,"82":4,"83":0,"84":0,"85":4,"86":2,"87":2,"88":0,"89":0,"90":0,"91":2,"92":2,"93":2,"94":2,"95":0,"96":0,"97":2,"98":2,"99":2,"100":2,"101":2,"102":2,"103":2,"104":2,"105":2,"106":4,"107":2,"108":0,"109":2,"110":2,"111":2,"112":0,"113":2,"114":2,"115":4,"116":4,"117":0,"118":1,"119":4,"120":4,"121":1,"122":1,"123":0,"124":0,"125":0,"126":1,"127":1,"128":3,"129":1,"130":1,"131":1,"132":2,"133":2,"134":2,"135":4,"136":4,"137":2,"138":2,"139":2,"140":2,"141":2,"142":0,"143":2,"144":0,"145":2,"146":2,"147":0,"148":2,"149":2,"150":2,"151":4,"152":1},"b":{"1":[0,2],"2":[2,0],"3":[2,1],"4":[0,2],"5":[2,2],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,4],"11":[3,1],"12":[2,2],"13":[4,3],"14":[2,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,2],"21":[1,1],"22":[2,2],"23":[2,0],"24":[2,1],"25":[0,2],"26":[2,0],"27":[0,2],"28":[2,2],"29":[2,0],"30":[0,2],"31":[0,2],"32":[0,4],"33":[1,3],"34":[0,1],"35":[1,2],"36":[3,2],"37":[0,1],"38":[1,1],"39":[2,0],"40":[0,2],"41":[0,2],"42":[0,2],"43":[2,2]},"f":{"1":2,"2":0,"3":4,"4":4,"5":4,"6":4,"7":4,"8":2,"9":2,"10":0,"11":2,"12":0,"13":4,"14":2,"15":0,"16":2,"17":2,"18":4,"19":2},"fnMap":{"1":{"name":"emit","line":11,"loc":{"start":{"line":11,"column":0},"end":{"line":11,"column":33}}},"2":{"name":"broadcast","line":43,"loc":{"start":{"line":43,"column":0},"end":{"line":43,"column":29}}},"3":{"name":"init","line":66,"loc":{"start":{"line":66,"column":0},"end":{"line":66,"column":35}}},"4":{"name":"onStart","line":78,"loc":{"start":{"line":78,"column":26},"end":{"line":78,"column":50}}},"5":{"name":"stop","line":84,"loc":{"start":{"line":84,"column":13},"end":{"line":84,"column":28}}},"6":{"name":"start","line":87,"loc":{"start":{"line":87,"column":26},"end":{"line":87,"column":42}}},"7":{"name":"(anonymous_7)","line":95,"loc":{"start":{"line":95,"column":16},"end":{"line":95,"column":28}}},"8":{"name":"UDPWrite","line":138,"loc":{"start":{"line":138,"column":24},"end":{"line":138,"column":57}}},"9":{"name":"(anonymous_9)","line":146,"loc":{"start":{"line":146,"column":32},"end":{"line":146,"column":53}}},"10":{"name":"(anonymous_10)","line":151,"loc":{"start":{"line":151,"column":44},"end":{"line":151,"column":57}}},"11":{"name":"(anonymous_11)","line":166,"loc":{"start":{"line":166,"column":28},"end":{"line":166,"column":40}}},"12":{"name":"(anonymous_12)","line":174,"loc":{"start":{"line":174,"column":24},"end":{"line":174,"column":37}}},"13":{"name":"serverCreated","line":186,"loc":{"start":{"line":186,"column":20},"end":{"line":186,"column":51}}},"14":{"name":"(anonymous_14)","line":196,"loc":{"start":{"line":196,"column":28},"end":{"line":196,"column":44}}},"15":{"name":"(anonymous_15)","line":206,"loc":{"start":{"line":206,"column":28},"end":{"line":206,"column":41}}},"16":{"name":"(anonymous_16)","line":215,"loc":{"start":{"line":215,"column":28},"end":{"line":215,"column":52}}},"17":{"name":"(anonymous_17)","line":263,"loc":{"start":{"line":263,"column":28},"end":{"line":263,"column":48}}},"18":{"name":"started","line":290,"loc":{"start":{"line":290,"column":20},"end":{"line":290,"column":44}}},"19":{"name":"(anonymous_19)","line":341,"loc":{"start":{"line":341,"column":8},"end":{"line":341,"column":18}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":9,"column":36}},"2":{"start":{"line":11,"column":0},"end":{"line":41,"column":1}},"3":{"start":{"line":12,"column":4},"end":{"line":12,"column":63}},"4":{"start":{"line":14,"column":4},"end":{"line":14,"column":28}},"5":{"start":{"line":15,"column":4},"end":{"line":15,"column":22}},"6":{"start":{"line":16,"column":4},"end":{"line":16,"column":22}},"7":{"start":{"line":18,"column":4},"end":{"line":23,"column":5}},"8":{"start":{"line":19,"column":8},"end":{"line":19,"column":41}},"9":{"start":{"line":20,"column":8},"end":{"line":20,"column":54}},"10":{"start":{"line":22,"column":8},"end":{"line":22,"column":44}},"11":{"start":{"line":25,"column":4},"end":{"line":38,"column":5}},"12":{"start":{"line":27,"column":8},"end":{"line":31,"column":9}},"13":{"start":{"line":28,"column":12},"end":{"line":28,"column":166}},"14":{"start":{"line":29,"column":12},"end":{"line":29,"column":38}},"15":{"start":{"line":30,"column":12},"end":{"line":30,"column":19}},"16":{"start":{"line":33,"column":8},"end":{"line":36,"column":10}},"17":{"start":{"line":37,"column":8},"end":{"line":37,"column":15}},"18":{"start":{"line":40,"column":4},"end":{"line":40,"column":26}},"19":{"start":{"line":43,"column":0},"end":{"line":64,"column":1}},"20":{"start":{"line":44,"column":4},"end":{"line":44,"column":127}},"21":{"start":{"line":45,"column":4},"end":{"line":45,"column":28}},"22":{"start":{"line":46,"column":4},"end":{"line":46,"column":22}},"23":{"start":{"line":47,"column":4},"end":{"line":47,"column":22}},"24":{"start":{"line":49,"column":4},"end":{"line":53,"column":5}},"25":{"start":{"line":50,"column":8},"end":{"line":50,"column":54}},"26":{"start":{"line":52,"column":8},"end":{"line":52,"column":44}},"27":{"start":{"line":55,"column":4},"end":{"line":63,"column":5}},"28":{"start":{"line":56,"column":8},"end":{"line":58,"column":9}},"29":{"start":{"line":57,"column":12},"end":{"line":57,"column":55}},"30":{"start":{"line":60,"column":8},"end":{"line":62,"column":9}},"31":{"start":{"line":61,"column":12},"end":{"line":61,"column":43}},"32":{"start":{"line":66,"column":0},"end":{"line":372,"column":1}},"33":{"start":{"line":67,"column":4},"end":{"line":335,"column":6}},"34":{"start":{"line":79,"column":12},"end":{"line":82,"column":14}},"35":{"start":{"line":85,"column":12},"end":{"line":85,"column":34}},"36":{"start":{"line":88,"column":12},"end":{"line":91,"column":13}},"37":{"start":{"line":89,"column":16},"end":{"line":89,"column":82}},"38":{"start":{"line":90,"column":16},"end":{"line":90,"column":23}},"39":{"start":{"line":93,"column":12},"end":{"line":333,"column":14}},"40":{"start":{"line":96,"column":20},"end":{"line":99,"column":22}},"41":{"start":{"line":101,"column":20},"end":{"line":170,"column":21}},"42":{"start":{"line":102,"column":24},"end":{"line":136,"column":25}},"43":{"start":{"line":103,"column":28},"end":{"line":105,"column":30}},"44":{"start":{"line":107,"column":28},"end":{"line":107,"column":80}},"45":{"start":{"line":108,"column":28},"end":{"line":112,"column":29}},"46":{"start":{"line":109,"column":32},"end":{"line":109,"column":97}},"47":{"start":{"line":111,"column":32},"end":{"line":111,"column":129}},"48":{"start":{"line":113,"column":28},"end":{"line":117,"column":29}},"49":{"start":{"line":114,"column":32},"end":{"line":114,"column":97}},"50":{"start":{"line":116,"column":32},"end":{"line":116,"column":122}},"51":{"start":{"line":118,"column":28},"end":{"line":120,"column":29}},"52":{"start":{"line":119,"column":32},"end":{"line":119,"column":101}},"53":{"start":{"line":121,"column":28},"end":{"line":131,"column":29}},"54":{"start":{"line":122,"column":32},"end":{"line":124,"column":33}},"55":{"start":{"line":123,"column":36},"end":{"line":123,"column":112}},"56":{"start":{"line":125,"column":32},"end":{"line":125,"column":56}},"57":{"start":{"line":126,"column":32},"end":{"line":130,"column":33}},"58":{"start":{"line":127,"column":36},"end":{"line":129,"column":38}},"59":{"start":{"line":132,"column":28},"end":{"line":135,"column":30}},"60":{"start":{"line":138,"column":24},"end":{"line":158,"column":25}},"61":{"start":{"line":139,"column":28},"end":{"line":139,"column":81}},"62":{"start":{"line":140,"column":28},"end":{"line":157,"column":30}},"63":{"start":{"line":147,"column":36},"end":{"line":155,"column":37}},"64":{"start":{"line":148,"column":40},"end":{"line":148,"column":87}},"65":{"start":{"line":149,"column":40},"end":{"line":154,"column":42}},"66":{"start":{"line":152,"column":48},"end":{"line":152,"column":76}},"67":{"start":{"line":160,"column":24},"end":{"line":162,"column":26}},"68":{"start":{"line":163,"column":24},"end":{"line":163,"column":53}},"69":{"start":{"line":164,"column":24},"end":{"line":169,"column":26}},"70":{"start":{"line":167,"column":32},"end":{"line":167,"column":61}},"71":{"start":{"line":172,"column":20},"end":{"line":182,"column":22}},"72":{"start":{"line":175,"column":28},"end":{"line":175,"column":59}},"73":{"start":{"line":177,"column":28},"end":{"line":180,"column":30}},"74":{"start":{"line":184,"column":20},"end":{"line":184,"column":78}},"75":{"start":{"line":186,"column":20},"end":{"line":288,"column":21}},"76":{"start":{"line":187,"column":24},"end":{"line":187,"column":52}},"77":{"start":{"line":189,"column":24},"end":{"line":191,"column":25}},"78":{"start":{"line":190,"column":28},"end":{"line":190,"column":71}},"79":{"start":{"line":193,"column":24},"end":{"line":193,"column":81}},"80":{"start":{"line":194,"column":24},"end":{"line":202,"column":26}},"81":{"start":{"line":197,"column":32},"end":{"line":200,"column":34}},"82":{"start":{"line":204,"column":24},"end":{"line":211,"column":26}},"83":{"start":{"line":207,"column":32},"end":{"line":207,"column":70}},"84":{"start":{"line":209,"column":32},"end":{"line":209,"column":60}},"85":{"start":{"line":213,"column":24},"end":{"line":259,"column":26}},"86":{"start":{"line":216,"column":32},"end":{"line":216,"column":92}},"87":{"start":{"line":217,"column":32},"end":{"line":225,"column":33}},"88":{"start":{"line":218,"column":36},"end":{"line":218,"column":81}},"89":{"start":{"line":219,"column":36},"end":{"line":223,"column":38}},"90":{"start":{"line":224,"column":36},"end":{"line":224,"column":43}},"91":{"start":{"line":227,"column":32},"end":{"line":229,"column":33}},"92":{"start":{"line":228,"column":36},"end":{"line":228,"column":54}},"93":{"start":{"line":231,"column":32},"end":{"line":231,"column":60}},"94":{"start":{"line":233,"column":32},"end":{"line":236,"column":33}},"95":{"start":{"line":234,"column":36},"end":{"line":234,"column":113}},"96":{"start":{"line":235,"column":36},"end":{"line":235,"column":43}},"97":{"start":{"line":238,"column":32},"end":{"line":238,"column":50}},"98":{"start":{"line":240,"column":32},"end":{"line":240,"column":61}},"99":{"start":{"line":242,"column":32},"end":{"line":257,"column":33}},"100":{"start":{"line":243,"column":36},"end":{"line":243,"column":60}},"101":{"start":{"line":244,"column":36},"end":{"line":244,"column":63}},"102":{"start":{"line":246,"column":36},"end":{"line":246,"column":97}},"103":{"start":{"line":248,"column":36},"end":{"line":250,"column":37}},"104":{"start":{"line":249,"column":40},"end":{"line":249,"column":64}},"105":{"start":{"line":252,"column":36},"end":{"line":256,"column":38}},"106":{"start":{"line":261,"column":24},"end":{"line":278,"column":26}},"107":{"start":{"line":264,"column":32},"end":{"line":266,"column":33}},"108":{"start":{"line":265,"column":36},"end":{"line":265,"column":43}},"109":{"start":{"line":268,"column":32},"end":{"line":268,"column":100}},"110":{"start":{"line":269,"column":32},"end":{"line":269,"column":41}},"111":{"start":{"line":271,"column":32},"end":{"line":275,"column":33}},"112":{"start":{"line":272,"column":36},"end":{"line":272,"column":80}},"113":{"start":{"line":274,"column":36},"end":{"line":274,"column":56}},"114":{"start":{"line":276,"column":32},"end":{"line":276,"column":63}},"115":{"start":{"line":280,"column":24},"end":{"line":283,"column":26}},"116":{"start":{"line":285,"column":24},"end":{"line":287,"column":25}},"117":{"start":{"line":286,"column":28},"end":{"line":286,"column":35}},"118":{"start":{"line":290,"column":20},"end":{"line":292,"column":21}},"119":{"start":{"line":291,"column":24},"end":{"line":291,"column":47}},"120":{"start":{"line":294,"column":20},"end":{"line":308,"column":21}},"121":{"start":{"line":295,"column":24},"end":{"line":295,"column":83}},"122":{"start":{"line":296,"column":24},"end":{"line":300,"column":25}},"123":{"start":{"line":297,"column":28},"end":{"line":297,"column":73}},"124":{"start":{"line":298,"column":28},"end":{"line":298,"column":74}},"125":{"start":{"line":299,"column":28},"end":{"line":299,"column":71}},"126":{"start":{"line":302,"column":24},"end":{"line":305,"column":26}},"127":{"start":{"line":307,"column":24},"end":{"line":307,"column":31}},"128":{"start":{"line":310,"column":20},"end":{"line":318,"column":21}},"129":{"start":{"line":311,"column":24},"end":{"line":311,"column":90}},"130":{"start":{"line":312,"column":24},"end":{"line":316,"column":26}},"131":{"start":{"line":317,"column":24},"end":{"line":317,"column":31}},"132":{"start":{"line":320,"column":20},"end":{"line":320,"column":84}},"133":{"start":{"line":321,"column":20},"end":{"line":324,"column":22}},"134":{"start":{"line":326,"column":20},"end":{"line":331,"column":22}},"135":{"start":{"line":337,"column":4},"end":{"line":337,"column":23}},"136":{"start":{"line":339,"column":4},"end":{"line":369,"column":6}},"137":{"start":{"line":342,"column":12},"end":{"line":367,"column":13}},"138":{"start":{"line":343,"column":16},"end":{"line":343,"column":45}},"139":{"start":{"line":344,"column":16},"end":{"line":344,"column":44}},"140":{"start":{"line":346,"column":16},"end":{"line":350,"column":17}},"141":{"start":{"line":347,"column":20},"end":{"line":349,"column":21}},"142":{"start":{"line":348,"column":24},"end":{"line":348,"column":33}},"143":{"start":{"line":352,"column":16},"end":{"line":354,"column":17}},"144":{"start":{"line":353,"column":20},"end":{"line":353,"column":48}},"145":{"start":{"line":356,"column":16},"end":{"line":356,"column":79}},"146":{"start":{"line":358,"column":16},"end":{"line":360,"column":17}},"147":{"start":{"line":359,"column":20},"end":{"line":359,"column":37}},"148":{"start":{"line":362,"column":16},"end":{"line":362,"column":43}},"149":{"start":{"line":364,"column":16},"end":{"line":364,"column":81}},"150":{"start":{"line":366,"column":16},"end":{"line":366,"column":23}},"151":{"start":{"line":371,"column":4},"end":{"line":371,"column":18}},"152":{"start":{"line":374,"column":0},"end":{"line":374,"column":20}}},"branchMap":{"1":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":4}},{"start":{"line":18,"column":4},"end":{"line":18,"column":4}}]},"2":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":25,"column":4}},{"start":{"line":25,"column":4},"end":{"line":25,"column":4}}]},"3":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":7},"end":{"line":25,"column":16}},{"start":{"line":25,"column":20},"end":{"line":25,"column":29}}]},"4":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":8}},{"start":{"line":27,"column":8},"end":{"line":27,"column":8}}]},"5":{"line":27,"type":"binary-expr","locations":[{"start":{"line":27,"column":11},"end":{"line":27,"column":26}},{"start":{"line":27,"column":30},"end":{"line":27,"column":42}}]},"6":{"line":44,"type":"cond-expr","locations":[{"start":{"line":44,"column":100},"end":{"line":44,"column":109}},{"start":{"line":44,"column":110},"end":{"line":44,"column":112}}]},"7":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":49,"column":4}},{"start":{"line":49,"column":4},"end":{"line":49,"column":4}}]},"8":{"line":55,"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":55,"column":4}},{"start":{"line":55,"column":4},"end":{"line":55,"column":4}}]},"9":{"line":55,"type":"binary-expr","locations":[{"start":{"line":55,"column":7},"end":{"line":55,"column":16}},{"start":{"line":55,"column":20},"end":{"line":55,"column":29}}]},"10":{"line":88,"type":"if","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":12}},{"start":{"line":88,"column":12},"end":{"line":88,"column":12}}]},"11":{"line":98,"type":"cond-expr","locations":[{"start":{"line":98,"column":39},"end":{"line":98,"column":56}},{"start":{"line":98,"column":57},"end":{"line":98,"column":59}}]},"12":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":20},"end":{"line":101,"column":20}},{"start":{"line":101,"column":20},"end":{"line":101,"column":20}}]},"13":{"line":101,"type":"binary-expr","locations":[{"start":{"line":101,"column":23},"end":{"line":101,"column":35}},{"start":{"line":101,"column":39},"end":{"line":101,"column":51}}]},"14":{"line":102,"type":"if","locations":[{"start":{"line":102,"column":24},"end":{"line":102,"column":24}},{"start":{"line":102,"column":24},"end":{"line":102,"column":24}}]},"15":{"line":108,"type":"if","locations":[{"start":{"line":108,"column":28},"end":{"line":108,"column":28}},{"start":{"line":108,"column":28},"end":{"line":108,"column":28}}]},"16":{"line":113,"type":"if","locations":[{"start":{"line":113,"column":28},"end":{"line":113,"column":28}},{"start":{"line":113,"column":28},"end":{"line":113,"column":28}}]},"17":{"line":118,"type":"if","locations":[{"start":{"line":118,"column":28},"end":{"line":118,"column":28}},{"start":{"line":118,"column":28},"end":{"line":118,"column":28}}]},"18":{"line":121,"type":"if","locations":[{"start":{"line":121,"column":28},"end":{"line":121,"column":28}},{"start":{"line":121,"column":28},"end":{"line":121,"column":28}}]},"19":{"line":122,"type":"if","locations":[{"start":{"line":122,"column":32},"end":{"line":122,"column":32}},{"start":{"line":122,"column":32},"end":{"line":122,"column":32}}]},"20":{"line":147,"type":"if","locations":[{"start":{"line":147,"column":36},"end":{"line":147,"column":36}},{"start":{"line":147,"column":36},"end":{"line":147,"column":36}}]},"21":{"line":161,"type":"cond-expr","locations":[{"start":{"line":161,"column":44},"end":{"line":161,"column":50}},{"start":{"line":161,"column":51},"end":{"line":161,"column":57}}]},"22":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":24},"end":{"line":189,"column":24}},{"start":{"line":189,"column":24},"end":{"line":189,"column":24}}]},"23":{"line":216,"type":"cond-expr","locations":[{"start":{"line":216,"column":72},"end":{"line":216,"column":81}},{"start":{"line":216,"column":84},"end":{"line":216,"column":90}}]},"24":{"line":216,"type":"binary-expr","locations":[{"start":{"line":216,"column":43},"end":{"line":216,"column":54}},{"start":{"line":216,"column":58},"end":{"line":216,"column":69}}]},"25":{"line":217,"type":"if","locations":[{"start":{"line":217,"column":32},"end":{"line":217,"column":32}},{"start":{"line":217,"column":32},"end":{"line":217,"column":32}}]},"26":{"line":227,"type":"if","locations":[{"start":{"line":227,"column":32},"end":{"line":227,"column":32}},{"start":{"line":227,"column":32},"end":{"line":227,"column":32}}]},"27":{"line":233,"type":"if","locations":[{"start":{"line":233,"column":32},"end":{"line":233,"column":32}},{"start":{"line":233,"column":32},"end":{"line":233,"column":32}}]},"28":{"line":233,"type":"binary-expr","locations":[{"start":{"line":233,"column":35},"end":{"line":233,"column":72}},{"start":{"line":233,"column":76},"end":{"line":233,"column":117}}]},"29":{"line":248,"type":"if","locations":[{"start":{"line":248,"column":36},"end":{"line":248,"column":36}},{"start":{"line":248,"column":36},"end":{"line":248,"column":36}}]},"30":{"line":264,"type":"if","locations":[{"start":{"line":264,"column":32},"end":{"line":264,"column":32}},{"start":{"line":264,"column":32},"end":{"line":264,"column":32}}]},"31":{"line":271,"type":"if","locations":[{"start":{"line":271,"column":32},"end":{"line":271,"column":32}},{"start":{"line":271,"column":32},"end":{"line":271,"column":32}}]},"32":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":24},"end":{"line":285,"column":24}},{"start":{"line":285,"column":24},"end":{"line":285,"column":24}}]},"33":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":20},"end":{"line":294,"column":20}},{"start":{"line":294,"column":20},"end":{"line":294,"column":20}}]},"34":{"line":296,"type":"if","locations":[{"start":{"line":296,"column":24},"end":{"line":296,"column":24}},{"start":{"line":296,"column":24},"end":{"line":296,"column":24}}]},"35":{"line":310,"type":"if","locations":[{"start":{"line":310,"column":20},"end":{"line":310,"column":20}},{"start":{"line":310,"column":20},"end":{"line":310,"column":20}}]},"36":{"line":310,"type":"binary-expr","locations":[{"start":{"line":310,"column":23},"end":{"line":310,"column":35}},{"start":{"line":310,"column":39},"end":{"line":310,"column":51}}]},"37":{"line":311,"type":"cond-expr","locations":[{"start":{"line":311,"column":76},"end":{"line":311,"column":81}},{"start":{"line":311,"column":82},"end":{"line":311,"column":87}}]},"38":{"line":320,"type":"cond-expr","locations":[{"start":{"line":320,"column":68},"end":{"line":320,"column":74}},{"start":{"line":320,"column":75},"end":{"line":320,"column":81}}]},"39":{"line":346,"type":"if","locations":[{"start":{"line":346,"column":16},"end":{"line":346,"column":16}},{"start":{"line":346,"column":16},"end":{"line":346,"column":16}}]},"40":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":20},"end":{"line":347,"column":20}},{"start":{"line":347,"column":20},"end":{"line":347,"column":20}}]},"41":{"line":352,"type":"if","locations":[{"start":{"line":352,"column":16},"end":{"line":352,"column":16}},{"start":{"line":352,"column":16},"end":{"line":352,"column":16}}]},"42":{"line":358,"type":"if","locations":[{"start":{"line":358,"column":16},"end":{"line":358,"column":16}},{"start":{"line":358,"column":16},"end":{"line":358,"column":16}}]},"43":{"line":358,"type":"binary-expr","locations":[{"start":{"line":358,"column":19},"end":{"line":358,"column":25}},{"start":{"line":358,"column":29},"end":{"line":358,"column":43}}]}}}} \ No newline at end of file +{"/home/ssmp/git/node-ipc/node-ipc.js":{"path":"/home/ssmp/git/node-ipc/node-ipc.js","s":{"1":1,"2":1,"3":1,"4":1},"b":{},"f":{"1":1},"fnMap":{"1":{"name":"(anonymous_1)","line":6,"loc":{"start":{"line":6,"column":15},"end":{"line":6,"column":17}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":41}},"2":{"start":{"line":7,"column":8},"end":{"line":7,"column":16}},"3":{"start":{"line":9,"column":8},"end":{"line":17,"column":9}},"4":{"start":{"line":21,"column":0},"end":{"line":21,"column":29}}},"branchMap":{}},"/home/ssmp/git/node-ipc/services/IPC.js":{"path":"/home/ssmp/git/node-ipc/services/IPC.js","s":{"1":1,"2":1,"3":1,"4":116,"5":0,"6":116,"7":116,"8":376,"9":348,"10":28,"11":116,"12":1,"13":7,"14":0,"15":7,"16":7,"17":7,"18":7,"19":7,"20":7,"21":1,"22":1,"23":0,"24":0,"25":1,"26":0,"27":0,"28":1,"29":0,"30":1,"31":1,"32":1,"33":1,"34":3,"35":1,"36":1,"37":1,"38":1,"39":3,"40":1,"41":1,"42":1,"43":1,"44":3,"45":2,"46":2,"47":3,"48":0,"49":0,"50":0,"51":0,"52":3,"53":0,"54":0,"55":0,"56":3,"57":0,"58":0,"59":0,"60":3,"61":1,"62":1,"63":3,"64":0,"65":0,"66":3,"67":0,"68":3,"69":3,"70":2,"71":2,"72":0,"73":3,"74":1,"75":4,"76":2,"77":2,"78":4,"79":0,"80":4,"81":0,"82":0,"83":4,"84":2,"85":2,"86":4,"87":0,"88":0,"89":0,"90":0,"91":0,"92":4,"93":4,"94":4,"95":4,"96":4,"97":1,"98":3,"99":0,"100":0,"101":3,"102":3,"103":3,"104":3,"105":3,"106":0,"107":0,"108":0,"109":3,"110":3,"111":3,"112":3,"113":0,"114":0,"115":3,"116":0,"117":0,"118":3,"119":0,"120":0,"121":3,"122":0,"123":3,"124":0,"125":0,"126":0,"127":0,"128":0,"129":3,"130":3,"131":3,"132":3,"133":3,"134":3,"135":1},"b":{"1":[0,116],"2":[348,28],"3":[0,7],"4":[7,0],"5":[7,0],"6":[0,1],"7":[0,1],"8":[0,1],"9":[1,2],"10":[1,2],"11":[2,1],"12":[0,3],"13":[3,3],"14":[0,3],"15":[0,3],"16":[1,2],"17":[0,3],"18":[0,3],"19":[2,1],"20":[0,2],"21":[2,1],"22":[2,2],"23":[0,4],"24":[0,4],"25":[2,2],"26":[0,4],"27":[0,0],"28":[0,3],"29":[3,0],"30":[0,3],"31":[3,0],"32":[0,3],"33":[0,3],"34":[0,3],"35":[0,3],"36":[0,3],"37":[0,0]},"f":{"1":1,"2":116,"3":7,"4":1,"5":0,"6":3,"7":4,"8":3},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":15},"end":{"line":9,"column":17}}},"2":{"name":"log","line":64,"loc":{"start":{"line":64,"column":0},"end":{"line":64,"column":14}}},"3":{"name":"disconnect","line":90,"loc":{"start":{"line":90,"column":0},"end":{"line":90,"column":23}}},"4":{"name":"serve","line":107,"loc":{"start":{"line":107,"column":0},"end":{"line":107,"column":29}}},"5":{"name":"emptyCallback","line":137,"loc":{"start":{"line":137,"column":0},"end":{"line":137,"column":24}}},"6":{"name":"serveNet","line":141,"loc":{"start":{"line":141,"column":0},"end":{"line":141,"column":45}}},"7":{"name":"connect","line":218,"loc":{"start":{"line":218,"column":0},"end":{"line":218,"column":34}}},"8":{"name":"connectNet","line":267,"loc":{"start":{"line":267,"column":0},"end":{"line":267,"column":42}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":27}},"2":{"start":{"line":10,"column":8},"end":{"line":60,"column":10}},"3":{"start":{"line":64,"column":0},"end":{"line":88,"column":1}},"4":{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},"5":{"start":{"line":66,"column":8},"end":{"line":66,"column":15}},"6":{"start":{"line":69,"column":4},"end":{"line":69,"column":53}},"7":{"start":{"line":71,"column":4},"end":{"line":83,"column":5}},"8":{"start":{"line":72,"column":8},"end":{"line":74,"column":9}},"9":{"start":{"line":73,"column":12},"end":{"line":73,"column":21}},"10":{"start":{"line":76,"column":8},"end":{"line":82,"column":10}},"11":{"start":{"line":85,"column":4},"end":{"line":87,"column":6}},"12":{"start":{"line":90,"column":0},"end":{"line":105,"column":1}},"13":{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},"14":{"start":{"line":92,"column":8},"end":{"line":92,"column":15}},"15":{"start":{"line":95,"column":4},"end":{"line":95,"column":44}},"16":{"start":{"line":97,"column":4},"end":{"line":97,"column":29}},"17":{"start":{"line":98,"column":4},"end":{"line":102,"column":5}},"18":{"start":{"line":99,"column":8},"end":{"line":101,"column":9}},"19":{"start":{"line":100,"column":12},"end":{"line":100,"column":41}},"20":{"start":{"line":104,"column":4},"end":{"line":104,"column":23}},"21":{"start":{"line":107,"column":0},"end":{"line":135,"column":1}},"22":{"start":{"line":108,"column":4},"end":{"line":111,"column":5}},"23":{"start":{"line":109,"column":8},"end":{"line":109,"column":22}},"24":{"start":{"line":110,"column":8},"end":{"line":110,"column":19}},"25":{"start":{"line":112,"column":4},"end":{"line":119,"column":5}},"26":{"start":{"line":113,"column":8},"end":{"line":117,"column":10}},"27":{"start":{"line":118,"column":8},"end":{"line":118,"column":72}},"28":{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},"29":{"start":{"line":122,"column":8},"end":{"line":122,"column":31}},"30":{"start":{"line":125,"column":4},"end":{"line":129,"column":6}},"31":{"start":{"line":131,"column":4},"end":{"line":134,"column":6}},"32":{"start":{"line":137,"column":0},"end":{"line":139,"column":1}},"33":{"start":{"line":141,"column":0},"end":{"line":216,"column":1}},"34":{"start":{"line":142,"column":4},"end":{"line":147,"column":5}},"35":{"start":{"line":143,"column":8},"end":{"line":143,"column":25}},"36":{"start":{"line":144,"column":8},"end":{"line":144,"column":21}},"37":{"start":{"line":145,"column":8},"end":{"line":145,"column":18}},"38":{"start":{"line":146,"column":8},"end":{"line":146,"column":19}},"39":{"start":{"line":148,"column":4},"end":{"line":153,"column":5}},"40":{"start":{"line":149,"column":8},"end":{"line":149,"column":22}},"41":{"start":{"line":150,"column":8},"end":{"line":150,"column":22}},"42":{"start":{"line":151,"column":8},"end":{"line":151,"column":19}},"43":{"start":{"line":152,"column":8},"end":{"line":152,"column":19}},"44":{"start":{"line":154,"column":4},"end":{"line":161,"column":5}},"45":{"start":{"line":155,"column":8},"end":{"line":159,"column":10}},"46":{"start":{"line":160,"column":8},"end":{"line":160,"column":37}},"47":{"start":{"line":162,"column":4},"end":{"line":167,"column":5}},"48":{"start":{"line":163,"column":8},"end":{"line":163,"column":22}},"49":{"start":{"line":164,"column":8},"end":{"line":164,"column":35}},"50":{"start":{"line":165,"column":8},"end":{"line":165,"column":19}},"51":{"start":{"line":166,"column":8},"end":{"line":166,"column":37}},"52":{"start":{"line":169,"column":4},"end":{"line":173,"column":5}},"53":{"start":{"line":170,"column":8},"end":{"line":170,"column":25}},"54":{"start":{"line":171,"column":8},"end":{"line":171,"column":21}},"55":{"start":{"line":172,"column":8},"end":{"line":172,"column":19}},"56":{"start":{"line":174,"column":4},"end":{"line":178,"column":5}},"57":{"start":{"line":175,"column":8},"end":{"line":175,"column":22}},"58":{"start":{"line":176,"column":8},"end":{"line":176,"column":22}},"59":{"start":{"line":177,"column":8},"end":{"line":177,"column":19}},"60":{"start":{"line":179,"column":4},"end":{"line":186,"column":5}},"61":{"start":{"line":180,"column":8},"end":{"line":184,"column":10}},"62":{"start":{"line":185,"column":8},"end":{"line":185,"column":37}},"63":{"start":{"line":188,"column":4},"end":{"line":191,"column":5}},"64":{"start":{"line":189,"column":8},"end":{"line":189,"column":25}},"65":{"start":{"line":190,"column":8},"end":{"line":190,"column":22}},"66":{"start":{"line":193,"column":4},"end":{"line":195,"column":5}},"67":{"start":{"line":194,"column":8},"end":{"line":194,"column":31}},"68":{"start":{"line":197,"column":4},"end":{"line":202,"column":6}},"69":{"start":{"line":204,"column":4},"end":{"line":210,"column":5}},"70":{"start":{"line":205,"column":8},"end":{"line":205,"column":34}},"71":{"start":{"line":206,"column":8},"end":{"line":209,"column":9}},"72":{"start":{"line":208,"column":12},"end":{"line":208,"column":43}},"73":{"start":{"line":212,"column":4},"end":{"line":215,"column":6}},"74":{"start":{"line":218,"column":0},"end":{"line":265,"column":1}},"75":{"start":{"line":219,"column":4},"end":{"line":222,"column":5}},"76":{"start":{"line":220,"column":8},"end":{"line":220,"column":22}},"77":{"start":{"line":221,"column":8},"end":{"line":221,"column":19}},"78":{"start":{"line":224,"column":4},"end":{"line":226,"column":5}},"79":{"start":{"line":225,"column":8},"end":{"line":225,"column":31}},"80":{"start":{"line":228,"column":4},"end":{"line":234,"column":5}},"81":{"start":{"line":229,"column":8},"end":{"line":232,"column":10}},"82":{"start":{"line":233,"column":8},"end":{"line":233,"column":15}},"83":{"start":{"line":236,"column":4},"end":{"line":243,"column":5}},"84":{"start":{"line":237,"column":8},"end":{"line":241,"column":10}},"85":{"start":{"line":242,"column":8},"end":{"line":242,"column":60}},"86":{"start":{"line":245,"column":4},"end":{"line":256,"column":5}},"87":{"start":{"line":246,"column":8},"end":{"line":254,"column":9}},"88":{"start":{"line":247,"column":12},"end":{"line":251,"column":14}},"89":{"start":{"line":252,"column":12},"end":{"line":252,"column":23}},"90":{"start":{"line":253,"column":12},"end":{"line":253,"column":19}},"91":{"start":{"line":255,"column":8},"end":{"line":255,"column":37}},"92":{"start":{"line":258,"column":4},"end":{"line":258,"column":51}},"93":{"start":{"line":259,"column":4},"end":{"line":259,"column":24}},"94":{"start":{"line":260,"column":4},"end":{"line":260,"column":28}},"95":{"start":{"line":262,"column":4},"end":{"line":262,"column":26}},"96":{"start":{"line":264,"column":4},"end":{"line":264,"column":19}},"97":{"start":{"line":267,"column":0},"end":{"line":336,"column":1}},"98":{"start":{"line":268,"column":4},"end":{"line":274,"column":5}},"99":{"start":{"line":269,"column":8},"end":{"line":272,"column":10}},"100":{"start":{"line":273,"column":8},"end":{"line":273,"column":15}},"101":{"start":{"line":275,"column":4},"end":{"line":279,"column":5}},"102":{"start":{"line":276,"column":8},"end":{"line":276,"column":22}},"103":{"start":{"line":277,"column":8},"end":{"line":277,"column":18}},"104":{"start":{"line":278,"column":8},"end":{"line":278,"column":19}},"105":{"start":{"line":280,"column":4},"end":{"line":284,"column":5}},"106":{"start":{"line":281,"column":8},"end":{"line":281,"column":22}},"107":{"start":{"line":282,"column":8},"end":{"line":282,"column":19}},"108":{"start":{"line":283,"column":8},"end":{"line":283,"column":19}},"109":{"start":{"line":285,"column":4},"end":{"line":292,"column":5}},"110":{"start":{"line":286,"column":8},"end":{"line":290,"column":10}},"111":{"start":{"line":291,"column":8},"end":{"line":291,"column":37}},"112":{"start":{"line":294,"column":4},"end":{"line":297,"column":5}},"113":{"start":{"line":295,"column":8},"end":{"line":295,"column":22}},"114":{"start":{"line":296,"column":8},"end":{"line":296,"column":19}},"115":{"start":{"line":298,"column":4},"end":{"line":305,"column":5}},"116":{"start":{"line":299,"column":8},"end":{"line":303,"column":10}},"117":{"start":{"line":304,"column":8},"end":{"line":304,"column":37}},"118":{"start":{"line":307,"column":4},"end":{"line":310,"column":5}},"119":{"start":{"line":308,"column":8},"end":{"line":308,"column":25}},"120":{"start":{"line":309,"column":8},"end":{"line":309,"column":23}},"121":{"start":{"line":311,"column":4},"end":{"line":313,"column":5}},"122":{"start":{"line":312,"column":8},"end":{"line":312,"column":31}},"123":{"start":{"line":315,"column":4},"end":{"line":326,"column":5}},"124":{"start":{"line":316,"column":8},"end":{"line":324,"column":9}},"125":{"start":{"line":317,"column":12},"end":{"line":321,"column":14}},"126":{"start":{"line":322,"column":12},"end":{"line":322,"column":23}},"127":{"start":{"line":323,"column":12},"end":{"line":323,"column":19}},"128":{"start":{"line":325,"column":8},"end":{"line":325,"column":37}},"129":{"start":{"line":328,"column":4},"end":{"line":328,"column":51}},"130":{"start":{"line":329,"column":4},"end":{"line":329,"column":24}},"131":{"start":{"line":330,"column":4},"end":{"line":330,"column":28}},"132":{"start":{"line":331,"column":4},"end":{"line":331,"column":28}},"133":{"start":{"line":333,"column":4},"end":{"line":333,"column":26}},"134":{"start":{"line":335,"column":4},"end":{"line":335,"column":19}},"135":{"start":{"line":338,"column":0},"end":{"line":338,"column":19}}},"branchMap":{"1":{"line":65,"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":65,"column":4}},{"start":{"line":65,"column":4},"end":{"line":65,"column":4}}]},"2":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":8},"end":{"line":72,"column":8}},{"start":{"line":72,"column":8},"end":{"line":72,"column":8}}]},"3":{"line":91,"type":"if","locations":[{"start":{"line":91,"column":4},"end":{"line":91,"column":4}},{"start":{"line":91,"column":4},"end":{"line":91,"column":4}}]},"4":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"5":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":99,"column":8}},{"start":{"line":99,"column":8},"end":{"line":99,"column":8}}]},"6":{"line":108,"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":108,"column":4}},{"start":{"line":108,"column":4},"end":{"line":108,"column":4}}]},"7":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":4},"end":{"line":112,"column":4}},{"start":{"line":112,"column":4},"end":{"line":112,"column":4}}]},"8":{"line":121,"type":"if","locations":[{"start":{"line":121,"column":4},"end":{"line":121,"column":4}},{"start":{"line":121,"column":4},"end":{"line":121,"column":4}}]},"9":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":4},"end":{"line":142,"column":4}},{"start":{"line":142,"column":4},"end":{"line":142,"column":4}}]},"10":{"line":148,"type":"if","locations":[{"start":{"line":148,"column":4},"end":{"line":148,"column":4}},{"start":{"line":148,"column":4},"end":{"line":148,"column":4}}]},"11":{"line":154,"type":"if","locations":[{"start":{"line":154,"column":4},"end":{"line":154,"column":4}},{"start":{"line":154,"column":4},"end":{"line":154,"column":4}}]},"12":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"13":{"line":162,"type":"binary-expr","locations":[{"start":{"line":162,"column":7},"end":{"line":162,"column":33}},{"start":{"line":162,"column":37},"end":{"line":162,"column":63}}]},"14":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":4},"end":{"line":169,"column":4}},{"start":{"line":169,"column":4},"end":{"line":169,"column":4}}]},"15":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":174,"column":4}},{"start":{"line":174,"column":4},"end":{"line":174,"column":4}}]},"16":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":4},"end":{"line":179,"column":4}},{"start":{"line":179,"column":4},"end":{"line":179,"column":4}}]},"17":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":4},"end":{"line":188,"column":4}},{"start":{"line":188,"column":4},"end":{"line":188,"column":4}}]},"18":{"line":193,"type":"if","locations":[{"start":{"line":193,"column":4},"end":{"line":193,"column":4}},{"start":{"line":193,"column":4},"end":{"line":193,"column":4}}]},"19":{"line":204,"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":4}},{"start":{"line":204,"column":4},"end":{"line":204,"column":4}}]},"20":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":8},"end":{"line":206,"column":8}},{"start":{"line":206,"column":8},"end":{"line":206,"column":8}}]},"21":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":11},"end":{"line":206,"column":29}},{"start":{"line":206,"column":33},"end":{"line":206,"column":47}}]},"22":{"line":219,"type":"if","locations":[{"start":{"line":219,"column":4},"end":{"line":219,"column":4}},{"start":{"line":219,"column":4},"end":{"line":219,"column":4}}]},"23":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":4},"end":{"line":224,"column":4}},{"start":{"line":224,"column":4},"end":{"line":224,"column":4}}]},"24":{"line":228,"type":"if","locations":[{"start":{"line":228,"column":4},"end":{"line":228,"column":4}},{"start":{"line":228,"column":4},"end":{"line":228,"column":4}}]},"25":{"line":236,"type":"if","locations":[{"start":{"line":236,"column":4},"end":{"line":236,"column":4}},{"start":{"line":236,"column":4},"end":{"line":236,"column":4}}]},"26":{"line":245,"type":"if","locations":[{"start":{"line":245,"column":4},"end":{"line":245,"column":4}},{"start":{"line":245,"column":4},"end":{"line":245,"column":4}}]},"27":{"line":246,"type":"if","locations":[{"start":{"line":246,"column":8},"end":{"line":246,"column":8}},{"start":{"line":246,"column":8},"end":{"line":246,"column":8}}]},"28":{"line":268,"type":"if","locations":[{"start":{"line":268,"column":4},"end":{"line":268,"column":4}},{"start":{"line":268,"column":4},"end":{"line":268,"column":4}}]},"29":{"line":275,"type":"if","locations":[{"start":{"line":275,"column":4},"end":{"line":275,"column":4}},{"start":{"line":275,"column":4},"end":{"line":275,"column":4}}]},"30":{"line":280,"type":"if","locations":[{"start":{"line":280,"column":4},"end":{"line":280,"column":4}},{"start":{"line":280,"column":4},"end":{"line":280,"column":4}}]},"31":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"32":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":4},"end":{"line":294,"column":4}},{"start":{"line":294,"column":4},"end":{"line":294,"column":4}}]},"33":{"line":298,"type":"if","locations":[{"start":{"line":298,"column":4},"end":{"line":298,"column":4}},{"start":{"line":298,"column":4},"end":{"line":298,"column":4}}]},"34":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":4},"end":{"line":307,"column":4}},{"start":{"line":307,"column":4},"end":{"line":307,"column":4}}]},"35":{"line":311,"type":"if","locations":[{"start":{"line":311,"column":4},"end":{"line":311,"column":4}},{"start":{"line":311,"column":4},"end":{"line":311,"column":4}}]},"36":{"line":315,"type":"if","locations":[{"start":{"line":315,"column":4},"end":{"line":315,"column":4}},{"start":{"line":315,"column":4},"end":{"line":315,"column":4}}]},"37":{"line":316,"type":"if","locations":[{"start":{"line":316,"column":8},"end":{"line":316,"column":8}},{"start":{"line":316,"column":8},"end":{"line":316,"column":8}}]}}},"/home/ssmp/git/node-ipc/entities/Defaults.js":{"path":"/home/ssmp/git/node-ipc/entities/Defaults.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":0,"9":1,"10":1},"b":{"1":[0,1],"2":[0,1],"3":[1,1,0]},"f":{"1":1,"2":1},"fnMap":{"1":{"name":"(anonymous_1)","line":22,"loc":{"start":{"line":22,"column":15},"end":{"line":22,"column":17}}},"2":{"name":"getIPType","line":125,"loc":{"start":{"line":125,"column":0},"end":{"line":125,"column":21}}}},"statementMap":{"1":{"start":{"line":9,"column":0},"end":{"line":9,"column":25}},"2":{"start":{"line":24,"column":8},"end":{"line":113,"column":10}},"3":{"start":{"line":115,"column":8},"end":{"line":115,"column":73}},"4":{"start":{"line":125,"column":0},"end":{"line":137,"column":1}},"5":{"start":{"line":126,"column":4},"end":{"line":126,"column":53}},"6":{"start":{"line":127,"column":4},"end":{"line":127,"column":20}},"7":{"start":{"line":128,"column":4},"end":{"line":135,"column":5}},"8":{"start":{"line":132,"column":8},"end":{"line":134,"column":20}},"9":{"start":{"line":136,"column":4},"end":{"line":136,"column":18}},"10":{"start":{"line":139,"column":0},"end":{"line":139,"column":24}}},"branchMap":{"1":{"line":115,"type":"cond-expr","locations":[{"start":{"line":115,"column":53},"end":{"line":115,"column":58}},{"start":{"line":115,"column":61},"end":{"line":115,"column":72}}]},"2":{"line":128,"type":"if","locations":[{"start":{"line":128,"column":4},"end":{"line":128,"column":4}},{"start":{"line":128,"column":4},"end":{"line":128,"column":4}}]},"3":{"line":128,"type":"binary-expr","locations":[{"start":{"line":128,"column":8},"end":{"line":128,"column":25}},{"start":{"line":129,"column":11},"end":{"line":129,"column":43}},{"start":{"line":130,"column":11},"end":{"line":130,"column":39}}]}}},"/home/ssmp/git/node-ipc/dao/client.js":{"path":"/home/ssmp/git/node-ipc/dao/client.js","s":{"1":1,"2":7,"3":7,"4":1,"5":7,"6":7,"7":7,"8":7,"9":7,"10":0,"11":7,"12":7,"13":1,"14":1,"15":6,"16":1,"17":6,"18":6,"19":1,"20":13,"21":13,"22":13,"23":0,"24":0,"25":13,"26":7,"27":7,"28":7,"29":0,"30":0,"31":0,"32":7,"33":6,"34":6,"35":6,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":13,"51":13,"52":10,"53":10,"54":13,"55":3,"56":3,"57":3,"58":13,"59":13,"60":13,"61":7,"62":7,"63":7,"64":7,"65":7,"66":7,"67":6,"68":6,"69":6,"70":6,"71":13,"72":7,"73":7,"74":0,"75":0,"76":0,"77":0,"78":0,"79":7,"80":7,"81":7,"82":7,"83":0,"84":0,"85":7,"86":7,"87":7,"88":7,"89":7,"90":7,"91":7,"92":7,"93":7,"94":0,"95":7,"96":1},"b":{"1":[7,0],"2":[0,7],"3":[1,6],"4":[0,13],"5":[7,6],"6":[0,7],"7":[7,0],"8":[6,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[7,6],"14":[13,8,6],"15":[0,7],"16":[0,0],"17":[7,0],"18":[0,7],"19":[7,7],"20":[0,7]},"f":{"1":7,"2":7,"3":6,"4":13,"5":10,"6":3,"7":13,"8":6,"9":7},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":27}}},"2":{"name":"emit","line":31,"loc":{"start":{"line":31,"column":0},"end":{"line":31,"column":24}}},"3":{"name":"syncEmit","line":54,"loc":{"start":{"line":54,"column":0},"end":{"line":54,"column":26}}},"4":{"name":"connect","line":59,"loc":{"start":{"line":59,"column":0},"end":{"line":59,"column":18}}},"5":{"name":"(anonymous_5)","line":126,"loc":{"start":{"line":126,"column":8},"end":{"line":126,"column":21}}},"6":{"name":"connectionMade","line":135,"loc":{"start":{"line":135,"column":8},"end":{"line":135,"column":33}}},"7":{"name":"connectionClosed","line":144,"loc":{"start":{"line":144,"column":8},"end":{"line":144,"column":35}}},"8":{"name":"retryTimeout","line":170,"loc":{"start":{"line":170,"column":16},"end":{"line":170,"column":39}}},"9":{"name":"(anonymous_9)","line":183,"loc":{"start":{"line":183,"column":8},"end":{"line":183,"column":23}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":9,"column":32}},"2":{"start":{"line":13,"column":8},"end":{"line":13,"column":16}},"3":{"start":{"line":14,"column":8},"end":{"line":27,"column":10}},"4":{"start":{"line":31,"column":0},"end":{"line":52,"column":1}},"5":{"start":{"line":32,"column":4},"end":{"line":32,"column":82}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":28}},"7":{"start":{"line":35,"column":4},"end":{"line":35,"column":22}},"8":{"start":{"line":36,"column":4},"end":{"line":36,"column":22}},"9":{"start":{"line":38,"column":4},"end":{"line":42,"column":5}},"10":{"start":{"line":39,"column":8},"end":{"line":39,"column":54}},"11":{"start":{"line":41,"column":8},"end":{"line":41,"column":44}},"12":{"start":{"line":44,"column":4},"end":{"line":47,"column":5}},"13":{"start":{"line":45,"column":8},"end":{"line":45,"column":35}},"14":{"start":{"line":46,"column":8},"end":{"line":46,"column":15}},"15":{"start":{"line":49,"column":4},"end":{"line":51,"column":6}},"16":{"start":{"line":54,"column":0},"end":{"line":57,"column":1}},"17":{"start":{"line":55,"column":4},"end":{"line":55,"column":74}},"18":{"start":{"line":56,"column":4},"end":{"line":56,"column":31}},"19":{"start":{"line":59,"column":0},"end":{"line":231,"column":1}},"20":{"start":{"line":61,"column":4},"end":{"line":61,"column":20}},"21":{"start":{"line":63,"column":4},"end":{"line":63,"column":67}},"22":{"start":{"line":64,"column":4},"end":{"line":67,"column":5}},"23":{"start":{"line":65,"column":8},"end":{"line":65,"column":119}},"24":{"start":{"line":66,"column":8},"end":{"line":66,"column":15}},"25":{"start":{"line":69,"column":4},"end":{"line":120,"column":5}},"26":{"start":{"line":70,"column":8},"end":{"line":70,"column":70}},"27":{"start":{"line":72,"column":8},"end":{"line":72,"column":31}},"28":{"start":{"line":74,"column":8},"end":{"line":78,"column":9}},"29":{"start":{"line":75,"column":12},"end":{"line":75,"column":43}},"30":{"start":{"line":76,"column":12},"end":{"line":76,"column":44}},"31":{"start":{"line":77,"column":12},"end":{"line":77,"column":41}},"32":{"start":{"line":79,"column":8},"end":{"line":83,"column":10}},"33":{"start":{"line":85,"column":8},"end":{"line":119,"column":9}},"34":{"start":{"line":86,"column":12},"end":{"line":86,"column":81}},"35":{"start":{"line":87,"column":12},"end":{"line":92,"column":14}},"36":{"start":{"line":94,"column":12},"end":{"line":94,"column":99}},"37":{"start":{"line":95,"column":12},"end":{"line":97,"column":13}},"38":{"start":{"line":96,"column":16},"end":{"line":96,"column":81}},"39":{"start":{"line":98,"column":12},"end":{"line":100,"column":13}},"40":{"start":{"line":99,"column":16},"end":{"line":99,"column":81}},"41":{"start":{"line":101,"column":12},"end":{"line":111,"column":13}},"42":{"start":{"line":102,"column":16},"end":{"line":104,"column":17}},"43":{"start":{"line":103,"column":20},"end":{"line":103,"column":96}},"44":{"start":{"line":105,"column":16},"end":{"line":105,"column":40}},"45":{"start":{"line":106,"column":16},"end":{"line":110,"column":17}},"46":{"start":{"line":107,"column":20},"end":{"line":109,"column":22}},"47":{"start":{"line":113,"column":12},"end":{"line":113,"column":47}},"48":{"start":{"line":114,"column":12},"end":{"line":114,"column":47}},"49":{"start":{"line":116,"column":12},"end":{"line":118,"column":14}},"50":{"start":{"line":122,"column":4},"end":{"line":122,"column":52}},"51":{"start":{"line":124,"column":4},"end":{"line":131,"column":6}},"52":{"start":{"line":127,"column":12},"end":{"line":127,"column":51}},"53":{"start":{"line":128,"column":12},"end":{"line":128,"column":41}},"54":{"start":{"line":133,"column":4},"end":{"line":140,"column":6}},"55":{"start":{"line":136,"column":12},"end":{"line":136,"column":38}},"56":{"start":{"line":137,"column":12},"end":{"line":137,"column":61}},"57":{"start":{"line":138,"column":12},"end":{"line":138,"column":41}},"58":{"start":{"line":142,"column":4},"end":{"line":179,"column":6}},"59":{"start":{"line":145,"column":12},"end":{"line":147,"column":10}},"60":{"start":{"line":149,"column":12},"end":{"line":167,"column":13}},"61":{"start":{"line":155,"column":16},"end":{"line":155,"column":45}},"62":{"start":{"line":156,"column":16},"end":{"line":160,"column":18}},"63":{"start":{"line":162,"column":16},"end":{"line":162,"column":40}},"64":{"start":{"line":163,"column":16},"end":{"line":163,"column":42}},"65":{"start":{"line":164,"column":16},"end":{"line":164,"column":33}},"66":{"start":{"line":166,"column":16},"end":{"line":166,"column":23}},"67":{"start":{"line":169,"column":12},"end":{"line":175,"column":14}},"68":{"start":{"line":171,"column":20},"end":{"line":171,"column":46}},"69":{"start":{"line":172,"column":20},"end":{"line":172,"column":37}},"70":{"start":{"line":177,"column":12},"end":{"line":177,"column":41}},"71":{"start":{"line":181,"column":4},"end":{"line":230,"column":6}},"72":{"start":{"line":184,"column":12},"end":{"line":184,"column":48}},"73":{"start":{"line":185,"column":12},"end":{"line":196,"column":13}},"74":{"start":{"line":186,"column":16},"end":{"line":189,"column":18}},"75":{"start":{"line":190,"column":16},"end":{"line":192,"column":17}},"76":{"start":{"line":191,"column":20},"end":{"line":191,"column":27}},"77":{"start":{"line":194,"column":16},"end":{"line":194,"column":36}},"78":{"start":{"line":195,"column":16},"end":{"line":195,"column":23}},"79":{"start":{"line":198,"column":12},"end":{"line":200,"column":13}},"80":{"start":{"line":199,"column":16},"end":{"line":199,"column":34}},"81":{"start":{"line":202,"column":12},"end":{"line":202,"column":40}},"82":{"start":{"line":204,"column":12},"end":{"line":207,"column":13}},"83":{"start":{"line":205,"column":16},"end":{"line":205,"column":93}},"84":{"start":{"line":206,"column":16},"end":{"line":206,"column":23}},"85":{"start":{"line":209,"column":12},"end":{"line":209,"column":30}},"86":{"start":{"line":211,"column":12},"end":{"line":211,"column":51}},"87":{"start":{"line":212,"column":12},"end":{"line":212,"column":41}},"88":{"start":{"line":213,"column":12},"end":{"line":222,"column":13}},"89":{"start":{"line":214,"column":16},"end":{"line":214,"column":40}},"90":{"start":{"line":215,"column":16},"end":{"line":215,"column":40}},"91":{"start":{"line":217,"column":16},"end":{"line":217,"column":73}},"92":{"start":{"line":218,"column":16},"end":{"line":221,"column":18}},"93":{"start":{"line":224,"column":12},"end":{"line":226,"column":13}},"94":{"start":{"line":225,"column":16},"end":{"line":225,"column":23}},"95":{"start":{"line":228,"column":12},"end":{"line":228,"column":32}},"96":{"start":{"line":233,"column":0},"end":{"line":233,"column":22}}},"branchMap":{"1":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":33},"end":{"line":24,"column":50}},{"start":{"line":24,"column":52},"end":{"line":24,"column":53}}]},"2":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":38,"column":4}},{"start":{"line":38,"column":4},"end":{"line":38,"column":4}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":4},"end":{"line":44,"column":4}},{"start":{"line":44,"column":4},"end":{"line":44,"column":4}}]},"4":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":4},"end":{"line":64,"column":4}},{"start":{"line":64,"column":4},"end":{"line":64,"column":4}}]},"5":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":69,"column":4}},{"start":{"line":69,"column":4},"end":{"line":69,"column":4}}]},"6":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":8},"end":{"line":74,"column":8}},{"start":{"line":74,"column":8},"end":{"line":74,"column":8}}]},"7":{"line":74,"type":"binary-expr","locations":[{"start":{"line":74,"column":12},"end":{"line":74,"column":39}},{"start":{"line":74,"column":43},"end":{"line":74,"column":83}}]},"8":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":8},"end":{"line":85,"column":8}},{"start":{"line":85,"column":8},"end":{"line":85,"column":8}}]},"9":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":12},"end":{"line":95,"column":12}},{"start":{"line":95,"column":12},"end":{"line":95,"column":12}}]},"10":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":12},"end":{"line":98,"column":12}},{"start":{"line":98,"column":12},"end":{"line":98,"column":12}}]},"11":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":12},"end":{"line":101,"column":12}},{"start":{"line":101,"column":12},"end":{"line":101,"column":12}}]},"12":{"line":102,"type":"if","locations":[{"start":{"line":102,"column":16},"end":{"line":102,"column":16}},{"start":{"line":102,"column":16},"end":{"line":102,"column":16}}]},"13":{"line":149,"type":"if","locations":[{"start":{"line":149,"column":12},"end":{"line":149,"column":12}},{"start":{"line":149,"column":12},"end":{"line":149,"column":12}}]},"14":{"line":150,"type":"binary-expr","locations":[{"start":{"line":150,"column":16},"end":{"line":150,"column":42}},{"start":{"line":151,"column":16},"end":{"line":151,"column":41}},{"start":{"line":152,"column":16},"end":{"line":152,"column":45}}]},"15":{"line":185,"type":"if","locations":[{"start":{"line":185,"column":12},"end":{"line":185,"column":12}},{"start":{"line":185,"column":12},"end":{"line":185,"column":12}}]},"16":{"line":190,"type":"if","locations":[{"start":{"line":190,"column":16},"end":{"line":190,"column":16}},{"start":{"line":190,"column":16},"end":{"line":190,"column":16}}]},"17":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":12},"end":{"line":198,"column":12}},{"start":{"line":198,"column":12},"end":{"line":198,"column":12}}]},"18":{"line":204,"type":"if","locations":[{"start":{"line":204,"column":12},"end":{"line":204,"column":12}},{"start":{"line":204,"column":12},"end":{"line":204,"column":12}}]},"19":{"line":204,"type":"binary-expr","locations":[{"start":{"line":204,"column":15},"end":{"line":204,"column":52}},{"start":{"line":204,"column":56},"end":{"line":204,"column":97}}]},"20":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":12},"end":{"line":224,"column":12}},{"start":{"line":224,"column":12},"end":{"line":224,"column":12}}]}}},"/home/ssmp/git/node-ipc/dao/eventParser.js":{"path":"/home/ssmp/git/node-ipc/dao/eventParser.js","s":{"1":1,"2":1,"3":9,"4":0,"5":9,"6":0,"7":9,"8":9,"9":1,"10":9,"11":9,"12":9,"13":1},"b":{"1":[0,9],"2":[9,0,0],"3":[0,9]},"f":{"1":9,"2":9},"fnMap":{"1":{"name":"formatData","line":9,"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":28}}},"2":{"name":"parseDataEvents","line":21,"loc":{"start":{"line":21,"column":0},"end":{"line":21,"column":30}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":7,"column":2}},"2":{"start":{"line":9,"column":0},"end":{"line":19,"column":1}},"3":{"start":{"line":10,"column":4},"end":{"line":12,"column":5}},"4":{"start":{"line":11,"column":8},"end":{"line":11,"column":24}},"5":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"6":{"start":{"line":14,"column":8},"end":{"line":14,"column":24}},"7":{"start":{"line":17,"column":4},"end":{"line":17,"column":42}},"8":{"start":{"line":18,"column":4},"end":{"line":18,"column":19}},"9":{"start":{"line":21,"column":0},"end":{"line":25,"column":1}},"10":{"start":{"line":22,"column":4},"end":{"line":22,"column":44}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":17}},"12":{"start":{"line":24,"column":4},"end":{"line":24,"column":18}},"13":{"start":{"line":27,"column":0},"end":{"line":27,"column":22}}},"branchMap":{"1":{"line":10,"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":4}},{"start":{"line":10,"column":4},"end":{"line":10,"column":4}}]},"2":{"line":10,"type":"binary-expr","locations":[{"start":{"line":10,"column":7},"end":{"line":10,"column":20}},{"start":{"line":10,"column":24},"end":{"line":10,"column":44}},{"start":{"line":10,"column":48},"end":{"line":10,"column":64}}]},"3":{"line":13,"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}]}}},"/home/ssmp/git/node-ipc/dao/socketServer.js":{"path":"/home/ssmp/git/node-ipc/dao/socketServer.js","s":{"1":1,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":0,"9":0,"10":4,"11":1,"12":2,"13":2,"14":2,"15":2,"16":2,"17":0,"18":0,"19":2,"20":2,"21":2,"22":0,"23":0,"24":0,"25":2,"26":2,"27":0,"28":1,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":2,"43":2,"44":2,"45":2,"46":2,"47":0,"48":2,"49":0,"50":2,"51":2,"52":0,"53":2,"54":2,"55":2,"56":1,"57":2,"58":2,"59":0,"60":0,"61":0,"62":2,"63":2,"64":2,"65":2,"66":0,"67":0,"68":2,"69":2,"70":2,"71":2,"72":2,"73":2,"74":2,"75":2,"76":2,"77":1,"78":2,"79":1,"80":4,"81":4,"82":2,"83":4,"84":4,"85":4,"86":0,"87":0,"88":4,"89":4,"90":2,"91":0,"92":2,"93":2,"94":2,"95":0,"96":2,"97":2,"98":4,"99":4,"100":0,"101":1,"102":4,"103":4,"104":2,"105":2,"106":2,"107":0,"108":2,"109":2,"110":2,"111":2,"112":4,"113":0,"114":0,"115":4,"116":4,"117":1,"118":1,"119":0,"120":0,"121":0,"122":1,"123":1,"124":3,"125":1,"126":1,"127":1,"128":2,"129":2,"130":2,"131":1,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":1,"149":2,"150":2,"151":2,"152":0,"153":0,"154":0,"155":1},"b":{"1":[0,4],"2":[0,2],"3":[2,0],"4":[2,1],"5":[0,2],"6":[2,2],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[2,0],"12":[0,2],"13":[0,2],"14":[0,2],"15":[2,2],"16":[2,0],"17":[2,1],"18":[0,2],"19":[2,0],"20":[0,2],"21":[2,2],"22":[2,0],"23":[2,2],"24":[0,2],"25":[0,2],"26":[0,4],"27":[3,1],"28":[2,2],"29":[4,3],"30":[2,0],"31":[1,1],"32":[1,3],"33":[0,1],"34":[1,2],"35":[3,2],"36":[0,1],"37":[1,1],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,2]},"f":{"1":4,"2":4,"3":4,"4":4,"5":2,"6":0,"7":2,"8":2,"9":2,"10":4,"11":0,"12":2,"13":4,"14":2,"15":0,"16":0,"17":2,"18":2,"19":0},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":37}}},"2":{"name":"(anonymous_2)","line":36,"loc":{"start":{"line":36,"column":11},"end":{"line":36,"column":19}}},"3":{"name":"(anonymous_3)","line":43,"loc":{"start":{"line":43,"column":8},"end":{"line":43,"column":10}}},"4":{"name":"(anonymous_4)","line":47,"loc":{"start":{"line":47,"column":9},"end":{"line":47,"column":11}}},"5":{"name":"emit","line":60,"loc":{"start":{"line":60,"column":0},"end":{"line":60,"column":33}}},"6":{"name":"broadcast","line":92,"loc":{"start":{"line":92,"column":0},"end":{"line":92,"column":29}}},"7":{"name":"serverClosed","line":115,"loc":{"start":{"line":115,"column":0},"end":{"line":115,"column":23}}},"8":{"name":"gotData","line":144,"loc":{"start":{"line":144,"column":0},"end":{"line":144,"column":39}}},"9":{"name":"socketClosed","line":189,"loc":{"start":{"line":189,"column":0},"end":{"line":189,"column":29}}},"10":{"name":"serverCreated","line":196,"loc":{"start":{"line":196,"column":0},"end":{"line":196,"column":31}}},"11":{"name":"(anonymous_11)","line":211,"loc":{"start":{"line":211,"column":8},"end":{"line":211,"column":21}}},"12":{"name":"(anonymous_12)","line":225,"loc":{"start":{"line":225,"column":8},"end":{"line":225,"column":28}}},"13":{"name":"startServer","line":252,"loc":{"start":{"line":252,"column":0},"end":{"line":252,"column":23}}},"14":{"name":"UDPServerStarted","line":274,"loc":{"start":{"line":274,"column":12},"end":{"line":274,"column":40}}},"15":{"name":"(anonymous_15)","line":282,"loc":{"start":{"line":282,"column":8},"end":{"line":282,"column":21}}},"16":{"name":"startTLSServer","line":335,"loc":{"start":{"line":335,"column":0},"end":{"line":335,"column":25}}},"17":{"name":"UDPWrite","line":367,"loc":{"start":{"line":367,"column":0},"end":{"line":367,"column":33}}},"18":{"name":"(anonymous_18)","line":375,"loc":{"start":{"line":375,"column":8},"end":{"line":375,"column":29}}},"19":{"name":"(anonymous_19)","line":380,"loc":{"start":{"line":380,"column":20},"end":{"line":380,"column":33}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":9,"column":36}},"2":{"start":{"line":13,"column":8},"end":{"line":13,"column":16}},"3":{"start":{"line":14,"column":8},"end":{"line":28,"column":10}},"4":{"start":{"line":30,"column":8},"end":{"line":33,"column":10}},"5":{"start":{"line":37,"column":8},"end":{"line":40,"column":10}},"6":{"start":{"line":44,"column":8},"end":{"line":44,"column":28}},"7":{"start":{"line":48,"column":8},"end":{"line":51,"column":9}},"8":{"start":{"line":49,"column":12},"end":{"line":49,"column":76}},"9":{"start":{"line":50,"column":12},"end":{"line":50,"column":19}},"10":{"start":{"line":53,"column":8},"end":{"line":56,"column":10}},"11":{"start":{"line":60,"column":0},"end":{"line":90,"column":1}},"12":{"start":{"line":61,"column":4},"end":{"line":61,"column":63}},"13":{"start":{"line":63,"column":4},"end":{"line":63,"column":28}},"14":{"start":{"line":64,"column":4},"end":{"line":64,"column":22}},"15":{"start":{"line":65,"column":4},"end":{"line":65,"column":22}},"16":{"start":{"line":67,"column":4},"end":{"line":72,"column":5}},"17":{"start":{"line":68,"column":8},"end":{"line":68,"column":41}},"18":{"start":{"line":69,"column":8},"end":{"line":69,"column":54}},"19":{"start":{"line":71,"column":8},"end":{"line":71,"column":44}},"20":{"start":{"line":74,"column":4},"end":{"line":87,"column":5}},"21":{"start":{"line":76,"column":8},"end":{"line":80,"column":9}},"22":{"start":{"line":77,"column":12},"end":{"line":77,"column":166}},"23":{"start":{"line":78,"column":12},"end":{"line":78,"column":38}},"24":{"start":{"line":79,"column":12},"end":{"line":79,"column":19}},"25":{"start":{"line":82,"column":8},"end":{"line":85,"column":10}},"26":{"start":{"line":86,"column":8},"end":{"line":86,"column":15}},"27":{"start":{"line":89,"column":4},"end":{"line":89,"column":26}},"28":{"start":{"line":92,"column":0},"end":{"line":113,"column":1}},"29":{"start":{"line":93,"column":4},"end":{"line":93,"column":127}},"30":{"start":{"line":94,"column":4},"end":{"line":94,"column":28}},"31":{"start":{"line":95,"column":4},"end":{"line":95,"column":22}},"32":{"start":{"line":96,"column":4},"end":{"line":96,"column":22}},"33":{"start":{"line":98,"column":4},"end":{"line":102,"column":5}},"34":{"start":{"line":99,"column":8},"end":{"line":99,"column":54}},"35":{"start":{"line":101,"column":8},"end":{"line":101,"column":44}},"36":{"start":{"line":104,"column":4},"end":{"line":112,"column":5}},"37":{"start":{"line":105,"column":8},"end":{"line":107,"column":9}},"38":{"start":{"line":106,"column":12},"end":{"line":106,"column":55}},"39":{"start":{"line":109,"column":8},"end":{"line":111,"column":9}},"40":{"start":{"line":110,"column":12},"end":{"line":110,"column":43}},"41":{"start":{"line":115,"column":0},"end":{"line":142,"column":1}},"42":{"start":{"line":116,"column":4},"end":{"line":141,"column":5}},"43":{"start":{"line":117,"column":8},"end":{"line":117,"column":35}},"44":{"start":{"line":118,"column":8},"end":{"line":118,"column":36}},"45":{"start":{"line":120,"column":8},"end":{"line":124,"column":9}},"46":{"start":{"line":121,"column":12},"end":{"line":123,"column":13}},"47":{"start":{"line":122,"column":16},"end":{"line":122,"column":25}},"48":{"start":{"line":126,"column":8},"end":{"line":128,"column":9}},"49":{"start":{"line":127,"column":12},"end":{"line":127,"column":40}},"50":{"start":{"line":130,"column":8},"end":{"line":130,"column":69}},"51":{"start":{"line":132,"column":8},"end":{"line":134,"column":9}},"52":{"start":{"line":133,"column":12},"end":{"line":133,"column":29}},"53":{"start":{"line":136,"column":8},"end":{"line":136,"column":33}},"54":{"start":{"line":138,"column":8},"end":{"line":138,"column":71}},"55":{"start":{"line":140,"column":8},"end":{"line":140,"column":15}},"56":{"start":{"line":144,"column":0},"end":{"line":187,"column":1}},"57":{"start":{"line":145,"column":4},"end":{"line":145,"column":60}},"58":{"start":{"line":146,"column":4},"end":{"line":154,"column":5}},"59":{"start":{"line":147,"column":8},"end":{"line":147,"column":51}},"60":{"start":{"line":148,"column":8},"end":{"line":152,"column":10}},"61":{"start":{"line":153,"column":8},"end":{"line":153,"column":15}},"62":{"start":{"line":156,"column":4},"end":{"line":158,"column":5}},"63":{"start":{"line":157,"column":8},"end":{"line":157,"column":26}},"64":{"start":{"line":160,"column":4},"end":{"line":160,"column":32}},"65":{"start":{"line":162,"column":4},"end":{"line":165,"column":5}},"66":{"start":{"line":163,"column":8},"end":{"line":163,"column":83}},"67":{"start":{"line":164,"column":8},"end":{"line":164,"column":15}},"68":{"start":{"line":167,"column":4},"end":{"line":167,"column":22}},"69":{"start":{"line":169,"column":4},"end":{"line":169,"column":33}},"70":{"start":{"line":171,"column":4},"end":{"line":186,"column":5}},"71":{"start":{"line":172,"column":8},"end":{"line":172,"column":32}},"72":{"start":{"line":173,"column":8},"end":{"line":173,"column":35}},"73":{"start":{"line":175,"column":8},"end":{"line":175,"column":67}},"74":{"start":{"line":177,"column":8},"end":{"line":179,"column":9}},"75":{"start":{"line":178,"column":12},"end":{"line":178,"column":36}},"76":{"start":{"line":181,"column":8},"end":{"line":185,"column":10}},"77":{"start":{"line":189,"column":0},"end":{"line":194,"column":1}},"78":{"start":{"line":190,"column":4},"end":{"line":193,"column":6}},"79":{"start":{"line":196,"column":0},"end":{"line":250,"column":1}},"80":{"start":{"line":197,"column":4},"end":{"line":197,"column":30}},"81":{"start":{"line":199,"column":4},"end":{"line":201,"column":5}},"82":{"start":{"line":200,"column":8},"end":{"line":200,"column":49}},"83":{"start":{"line":203,"column":4},"end":{"line":203,"column":59}},"84":{"start":{"line":204,"column":4},"end":{"line":207,"column":6}},"85":{"start":{"line":209,"column":4},"end":{"line":216,"column":6}},"86":{"start":{"line":212,"column":12},"end":{"line":212,"column":48}},"87":{"start":{"line":214,"column":12},"end":{"line":214,"column":38}},"88":{"start":{"line":218,"column":4},"end":{"line":221,"column":6}},"89":{"start":{"line":223,"column":4},"end":{"line":240,"column":6}},"90":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"91":{"start":{"line":227,"column":16},"end":{"line":227,"column":23}},"92":{"start":{"line":230,"column":12},"end":{"line":230,"column":78}},"93":{"start":{"line":231,"column":12},"end":{"line":231,"column":21}},"94":{"start":{"line":233,"column":12},"end":{"line":237,"column":13}},"95":{"start":{"line":234,"column":16},"end":{"line":234,"column":58}},"96":{"start":{"line":236,"column":16},"end":{"line":236,"column":36}},"97":{"start":{"line":238,"column":12},"end":{"line":238,"column":43}},"98":{"start":{"line":242,"column":4},"end":{"line":245,"column":6}},"99":{"start":{"line":247,"column":4},"end":{"line":249,"column":5}},"100":{"start":{"line":248,"column":8},"end":{"line":248,"column":15}},"101":{"start":{"line":252,"column":0},"end":{"line":333,"column":1}},"102":{"start":{"line":253,"column":4},"end":{"line":256,"column":6}},"103":{"start":{"line":258,"column":4},"end":{"line":278,"column":5}},"104":{"start":{"line":259,"column":8},"end":{"line":266,"column":9}},"105":{"start":{"line":260,"column":12},"end":{"line":260,"column":60}},"106":{"start":{"line":261,"column":12},"end":{"line":263,"column":14}},"107":{"start":{"line":265,"column":12},"end":{"line":265,"column":38}},"108":{"start":{"line":268,"column":8},"end":{"line":270,"column":10}},"109":{"start":{"line":271,"column":8},"end":{"line":271,"column":46}},"110":{"start":{"line":272,"column":8},"end":{"line":277,"column":10}},"111":{"start":{"line":275,"column":16},"end":{"line":275,"column":54}},"112":{"start":{"line":280,"column":4},"end":{"line":290,"column":6}},"113":{"start":{"line":283,"column":12},"end":{"line":283,"column":41}},"114":{"start":{"line":285,"column":12},"end":{"line":288,"column":14}},"115":{"start":{"line":292,"column":4},"end":{"line":292,"column":58}},"116":{"start":{"line":294,"column":4},"end":{"line":308,"column":5}},"117":{"start":{"line":295,"column":8},"end":{"line":295,"column":65}},"118":{"start":{"line":296,"column":8},"end":{"line":300,"column":9}},"119":{"start":{"line":297,"column":12},"end":{"line":297,"column":53}},"120":{"start":{"line":298,"column":12},"end":{"line":298,"column":54}},"121":{"start":{"line":299,"column":12},"end":{"line":299,"column":51}},"122":{"start":{"line":302,"column":8},"end":{"line":305,"column":10}},"123":{"start":{"line":307,"column":8},"end":{"line":307,"column":15}},"124":{"start":{"line":310,"column":4},"end":{"line":318,"column":5}},"125":{"start":{"line":311,"column":8},"end":{"line":311,"column":70}},"126":{"start":{"line":312,"column":8},"end":{"line":316,"column":10}},"127":{"start":{"line":317,"column":8},"end":{"line":317,"column":15}},"128":{"start":{"line":320,"column":4},"end":{"line":320,"column":64}},"129":{"start":{"line":322,"column":4},"end":{"line":325,"column":6}},"130":{"start":{"line":327,"column":4},"end":{"line":332,"column":6}},"131":{"start":{"line":335,"column":0},"end":{"line":365,"column":1}},"132":{"start":{"line":336,"column":4},"end":{"line":336,"column":52}},"133":{"start":{"line":337,"column":4},"end":{"line":341,"column":5}},"134":{"start":{"line":338,"column":8},"end":{"line":338,"column":69}},"135":{"start":{"line":340,"column":8},"end":{"line":340,"column":103}},"136":{"start":{"line":342,"column":4},"end":{"line":346,"column":5}},"137":{"start":{"line":343,"column":8},"end":{"line":343,"column":69}},"138":{"start":{"line":345,"column":8},"end":{"line":345,"column":96}},"139":{"start":{"line":347,"column":4},"end":{"line":349,"column":5}},"140":{"start":{"line":348,"column":8},"end":{"line":348,"column":73}},"141":{"start":{"line":350,"column":4},"end":{"line":360,"column":5}},"142":{"start":{"line":351,"column":8},"end":{"line":353,"column":9}},"143":{"start":{"line":352,"column":12},"end":{"line":352,"column":84}},"144":{"start":{"line":354,"column":8},"end":{"line":354,"column":30}},"145":{"start":{"line":355,"column":8},"end":{"line":359,"column":9}},"146":{"start":{"line":356,"column":12},"end":{"line":358,"column":14}},"147":{"start":{"line":361,"column":4},"end":{"line":364,"column":6}},"148":{"start":{"line":367,"column":0},"end":{"line":387,"column":1}},"149":{"start":{"line":368,"column":4},"end":{"line":368,"column":55}},"150":{"start":{"line":369,"column":4},"end":{"line":386,"column":6}},"151":{"start":{"line":376,"column":12},"end":{"line":384,"column":13}},"152":{"start":{"line":377,"column":16},"end":{"line":377,"column":61}},"153":{"start":{"line":378,"column":16},"end":{"line":383,"column":18}},"154":{"start":{"line":381,"column":24},"end":{"line":381,"column":50}},"155":{"start":{"line":389,"column":0},"end":{"line":389,"column":22}}},"branchMap":{"1":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":8},"end":{"line":48,"column":8}},{"start":{"line":48,"column":8},"end":{"line":48,"column":8}}]},"2":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":4},"end":{"line":67,"column":4}},{"start":{"line":67,"column":4},"end":{"line":67,"column":4}}]},"3":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"4":{"line":74,"type":"binary-expr","locations":[{"start":{"line":74,"column":7},"end":{"line":74,"column":16}},{"start":{"line":74,"column":20},"end":{"line":74,"column":29}}]},"5":{"line":76,"type":"if","locations":[{"start":{"line":76,"column":8},"end":{"line":76,"column":8}},{"start":{"line":76,"column":8},"end":{"line":76,"column":8}}]},"6":{"line":76,"type":"binary-expr","locations":[{"start":{"line":76,"column":11},"end":{"line":76,"column":26}},{"start":{"line":76,"column":30},"end":{"line":76,"column":42}}]},"7":{"line":93,"type":"cond-expr","locations":[{"start":{"line":93,"column":100},"end":{"line":93,"column":109}},{"start":{"line":93,"column":110},"end":{"line":93,"column":112}}]},"8":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"9":{"line":104,"type":"if","locations":[{"start":{"line":104,"column":4},"end":{"line":104,"column":4}},{"start":{"line":104,"column":4},"end":{"line":104,"column":4}}]},"10":{"line":104,"type":"binary-expr","locations":[{"start":{"line":104,"column":7},"end":{"line":104,"column":16}},{"start":{"line":104,"column":20},"end":{"line":104,"column":29}}]},"11":{"line":120,"type":"if","locations":[{"start":{"line":120,"column":8},"end":{"line":120,"column":8}},{"start":{"line":120,"column":8},"end":{"line":120,"column":8}}]},"12":{"line":121,"type":"if","locations":[{"start":{"line":121,"column":12},"end":{"line":121,"column":12}},{"start":{"line":121,"column":12},"end":{"line":121,"column":12}}]},"13":{"line":126,"type":"if","locations":[{"start":{"line":126,"column":8},"end":{"line":126,"column":8}},{"start":{"line":126,"column":8},"end":{"line":126,"column":8}}]},"14":{"line":132,"type":"if","locations":[{"start":{"line":132,"column":8},"end":{"line":132,"column":8}},{"start":{"line":132,"column":8},"end":{"line":132,"column":8}}]},"15":{"line":132,"type":"binary-expr","locations":[{"start":{"line":132,"column":11},"end":{"line":132,"column":17}},{"start":{"line":132,"column":21},"end":{"line":132,"column":35}}]},"16":{"line":145,"type":"cond-expr","locations":[{"start":{"line":145,"column":40},"end":{"line":145,"column":49}},{"start":{"line":145,"column":52},"end":{"line":145,"column":58}}]},"17":{"line":145,"type":"binary-expr","locations":[{"start":{"line":145,"column":15},"end":{"line":145,"column":24}},{"start":{"line":145,"column":28},"end":{"line":145,"column":37}}]},"18":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":4},"end":{"line":146,"column":4}},{"start":{"line":146,"column":4},"end":{"line":146,"column":4}}]},"19":{"line":156,"type":"if","locations":[{"start":{"line":156,"column":4},"end":{"line":156,"column":4}},{"start":{"line":156,"column":4},"end":{"line":156,"column":4}}]},"20":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":162,"column":4}},{"start":{"line":162,"column":4},"end":{"line":162,"column":4}}]},"21":{"line":162,"type":"binary-expr","locations":[{"start":{"line":162,"column":7},"end":{"line":162,"column":44}},{"start":{"line":162,"column":48},"end":{"line":162,"column":89}}]},"22":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":8},"end":{"line":177,"column":8}},{"start":{"line":177,"column":8},"end":{"line":177,"column":8}}]},"23":{"line":199,"type":"if","locations":[{"start":{"line":199,"column":4},"end":{"line":199,"column":4}},{"start":{"line":199,"column":4},"end":{"line":199,"column":4}}]},"24":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]},"25":{"line":233,"type":"if","locations":[{"start":{"line":233,"column":12},"end":{"line":233,"column":12}},{"start":{"line":233,"column":12},"end":{"line":233,"column":12}}]},"26":{"line":247,"type":"if","locations":[{"start":{"line":247,"column":4},"end":{"line":247,"column":4}},{"start":{"line":247,"column":4},"end":{"line":247,"column":4}}]},"27":{"line":255,"type":"cond-expr","locations":[{"start":{"line":255,"column":21},"end":{"line":255,"column":36}},{"start":{"line":255,"column":37},"end":{"line":255,"column":39}}]},"28":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":4},"end":{"line":258,"column":4}},{"start":{"line":258,"column":4},"end":{"line":258,"column":4}}]},"29":{"line":258,"type":"binary-expr","locations":[{"start":{"line":258,"column":7},"end":{"line":258,"column":17}},{"start":{"line":258,"column":21},"end":{"line":258,"column":31}}]},"30":{"line":259,"type":"if","locations":[{"start":{"line":259,"column":8},"end":{"line":259,"column":8}},{"start":{"line":259,"column":8},"end":{"line":259,"column":8}}]},"31":{"line":269,"type":"cond-expr","locations":[{"start":{"line":269,"column":26},"end":{"line":269,"column":32}},{"start":{"line":269,"column":33},"end":{"line":269,"column":39}}]},"32":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":4},"end":{"line":294,"column":4}},{"start":{"line":294,"column":4},"end":{"line":294,"column":4}}]},"33":{"line":296,"type":"if","locations":[{"start":{"line":296,"column":8},"end":{"line":296,"column":8}},{"start":{"line":296,"column":8},"end":{"line":296,"column":8}}]},"34":{"line":310,"type":"if","locations":[{"start":{"line":310,"column":4},"end":{"line":310,"column":4}},{"start":{"line":310,"column":4},"end":{"line":310,"column":4}}]},"35":{"line":310,"type":"binary-expr","locations":[{"start":{"line":310,"column":7},"end":{"line":310,"column":17}},{"start":{"line":310,"column":21},"end":{"line":310,"column":31}}]},"36":{"line":311,"type":"cond-expr","locations":[{"start":{"line":311,"column":56},"end":{"line":311,"column":61}},{"start":{"line":311,"column":62},"end":{"line":311,"column":67}}]},"37":{"line":320,"type":"cond-expr","locations":[{"start":{"line":320,"column":48},"end":{"line":320,"column":54}},{"start":{"line":320,"column":55},"end":{"line":320,"column":61}}]},"38":{"line":337,"type":"if","locations":[{"start":{"line":337,"column":4},"end":{"line":337,"column":4}},{"start":{"line":337,"column":4},"end":{"line":337,"column":4}}]},"39":{"line":342,"type":"if","locations":[{"start":{"line":342,"column":4},"end":{"line":342,"column":4}},{"start":{"line":342,"column":4},"end":{"line":342,"column":4}}]},"40":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":4},"end":{"line":347,"column":4}},{"start":{"line":347,"column":4},"end":{"line":347,"column":4}}]},"41":{"line":350,"type":"if","locations":[{"start":{"line":350,"column":4},"end":{"line":350,"column":4}},{"start":{"line":350,"column":4},"end":{"line":350,"column":4}}]},"42":{"line":351,"type":"if","locations":[{"start":{"line":351,"column":8},"end":{"line":351,"column":8}},{"start":{"line":351,"column":8},"end":{"line":351,"column":8}}]},"43":{"line":376,"type":"if","locations":[{"start":{"line":376,"column":12},"end":{"line":376,"column":12}},{"start":{"line":376,"column":12},"end":{"line":376,"column":12}}]}}}} \ No newline at end of file diff --git a/spec/coverage/lcov-report/index.html b/spec/coverage/lcov-report/index.html index c6c48a0..5ceede3 100644 --- a/spec/coverage/lcov-report/index.html +++ b/spec/coverage/lcov-report/index.html @@ -20,9 +20,9 @@
- 67.48% + 67.31% Statements - 278/412 + 278/413
56.28% @@ -30,14 +30,14 @@ 121/215
- 87.8% + 85.37% Functions - 36/41 + 35/41
- 67.48% + 67.31% Lines - 278/412 + 278/413
@@ -73,15 +73,15 @@ node-ipc/dao/ -
- 66.92% - 176/263 +
+ 66.67% + 176/264 53.73% 72/134 - 86.67% - 26/30 - 66.92% - 176/263 + 83.33% + 25/30 + 66.67% + 176/264 @@ -116,7 +116,7 @@ diff --git a/spec/coverage/lcov-report/node-ipc/dao/client.js.html b/spec/coverage/lcov-report/node-ipc/dao/client.js.html index 44e5dfc..945db4b 100644 --- a/spec/coverage/lcov-report/node-ipc/dao/client.js.html +++ b/spec/coverage/lcov-report/node-ipc/dao/client.js.html @@ -20,9 +20,9 @@
- 71.43% + 70.83% Statements - 70/98 + 68/96
51.22% @@ -35,9 +35,9 @@ 9/9
- 71.43% + 70.83% Lines - 70/98 + 68/96
@@ -273,7 +273,10 @@ 228 229 230 -231  +231 +232 +233 +234      @@ -283,7 +286,9 @@       - +  +  +     @@ -295,9 +300,10 @@       -   - +  +  +      @@ -508,26 +514,29 @@ const net = require('net'), tls = require('tls'), eventParser = require('./eventParser.js'), - Pubsub = require('event-pubsub'), + Events = require('event-pubsub'), Message = require('js-message'), fs = require('fs'), Queue = require('js-queue');   -function init(config,log){ - let client={ - config : config, - queue : new Queue, - socket : false, - connect : connect, - emit : emit, - log : log, - retriesRemaining:config.maxRetries||0, - explicitlyDisconnected: false - }; -  - new Pubsub(client); -  - return client; +class Client extends Events{ + constructor(config,log){ + super(); + Object.assign( + this, + { + Client : Client, + config : config, + queue : new Queue, + socket : false, + connect : connect, + emit : emit, + log : log, + retriesRemaining:config.maxRetries||0, + explicitlyDisconnected: false + } + ); + } }   function emit(type,data){ @@ -627,7 +636,7 @@ function connect(){ 'error', function(err){ client.log('\n\n######\nerror: ', err); - client.trigger('error', err); + client.publish('error', err);   } ); @@ -635,7 +644,7 @@ function connect(){ client.socket.on( 'connect', function connectionMade(){ - client.trigger('connect'); + client.publish('connect'); client.retriesRemaining=client.config.maxRetries; client.log('retrying reset'); } @@ -654,7 +663,7 @@ function connect(){ client.explicitlyDisconnected   ){ - client.trigger('disconnect'); + client.publish('disconnect'); client.log( (client.config.id), 'exceeded connection rety amount of', @@ -662,7 +671,7 @@ function connect(){ );   client.socket.destroy(); - client.trigger('destroy'); + client.publish('destroy'); client=undefined;   return; @@ -676,7 +685,7 @@ function connect(){ client.config.retry );   - client.trigger('disconnect'); + client.publish('disconnect'); } );   @@ -685,7 +694,7 @@ function connect(){ function(data) { client.log('## received events ##'); Iif(client.config.rawBuffer){ - client.trigger( + client.publish( 'data', new Buffer(data,client.config.encoding) ); @@ -717,7 +726,7 @@ function connect(){ message.load(events[i]);   client.log('detected event', message.type, message.data); - client.trigger( + client.publish( message.type, message.data ); @@ -732,14 +741,14 @@ function connect(){ ); }   -module.exports=init; +module.exports=Client;  
diff --git a/spec/coverage/lcov-report/node-ipc/dao/eventParser.js.html b/spec/coverage/lcov-report/node-ipc/dao/eventParser.js.html index 757aa97..2104ed9 100644 --- a/spec/coverage/lcov-report/node-ipc/dao/eventParser.js.html +++ b/spec/coverage/lcov-report/node-ipc/dao/eventParser.js.html @@ -130,7 +130,7 @@ module.exports=parser; diff --git a/spec/coverage/lcov-report/node-ipc/dao/index.html b/spec/coverage/lcov-report/node-ipc/dao/index.html index 3d3e953..97d7ddd 100644 --- a/spec/coverage/lcov-report/node-ipc/dao/index.html +++ b/spec/coverage/lcov-report/node-ipc/dao/index.html @@ -20,9 +20,9 @@
- 66.92% + 66.67% Statements - 176/263 + 176/264
53.73% @@ -30,14 +30,14 @@ 72/134
- 86.67% + 83.33% Functions - 26/30 + 25/30
- 66.92% + 66.67% Lines - 176/263 + 176/264
@@ -60,15 +60,15 @@ client.js -
- 71.43% - 70/98 +
+ 70.83% + 68/96 51.22% 21/41 100% 9/9 - 71.43% - 70/98 + 70.83% + 68/96 @@ -86,15 +86,15 @@ socketServer.js -
- 62.5% - 95/152 +
+ 62.58% + 97/155 55.81% 48/86 - 78.95% - 15/19 - 62.5% - 95/152 + 73.68% + 14/19 + 62.58% + 97/155 @@ -103,7 +103,7 @@ diff --git a/spec/coverage/lcov-report/node-ipc/dao/socketServer.js.html b/spec/coverage/lcov-report/node-ipc/dao/socketServer.js.html index d716bac..7ce6463 100644 --- a/spec/coverage/lcov-report/node-ipc/dao/socketServer.js.html +++ b/spec/coverage/lcov-report/node-ipc/dao/socketServer.js.html @@ -20,9 +20,9 @@
- 62.5% + 62.58% Statements - 95/152 + 97/155
55.81% @@ -30,14 +30,14 @@ 48/86
- 78.95% + 73.68% Functions - 15/19 + 14/19
- 62.5% + 62.58% Lines - 95/152 + 97/155
@@ -417,7 +417,22 @@ 372 373 374 -375  +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390      @@ -427,6 +442,55 @@       +  +  + + +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + +  +  +  +  +  +  + +  +  +  +  +  +  + +  +  +  + +  +  +  +  + +  +  +  +  +  +    @@ -483,72 +547,74 @@     - -  -  -  -  -  -  -  -  -  -  -  - -  -  -  -  -  - -  -  - -  -  -  -  - -  -  - -  -  -  -  - + +  + + +  +  +  +  + +  +  +  + +  + +  +  +  + +  + +  +       -  -  -  -  -  -  + + +       -  +  +      -    -  -  -    -  + + +  +  + +  +         + +  + +  + + + +  + +  + + +  +  +     -        @@ -556,52 +622,11 @@   -           -  - -  -  -  -  -  -  -  -  -  -  -  -  - -  -  - - -  -  - -  -  -  -  - -  -  -  -  -  -  -  -  -  -  -  - -    @@ -613,11 +638,6 @@     - -  -  -  -      @@ -632,49 +652,6 @@     - - -  -  -  -  -  -  -  -  -  - - -  -  - -  - -  -  -  -  - -  - -  - - - -  - -  - - -  -  - -  -  -  -  -  -      @@ -710,6 +687,44 @@     +  +  + + + + +  +  +  +  +  +  + +  +  + + +  +  + +  +  +  +  + +  +  +  +  +  +  +  +  +  +  +  + +  @@ -737,6 +752,7 @@     +      @@ -750,44 +766,58 @@       -  -  -  - -  - -  -  - - - -  - - +   +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + + + +  +  +          -  -  - -  -       - -  - -  - +  +          -     @@ -798,9 +828,58 @@ const net = require('net'), fs = require('fs'), dgram = require('dgram'), eventParser = require('./eventParser.js'), - Pubsub = require('event-pubsub'), + Events = require('event-pubsub'), Message = require('js-message');   +class Server extends Events{ + constructor(path,config,log,port){ + super(); + Object.assign( + this, + { + config : config, + path : path, + port : port, + udp4 : false, + udp6 : false, + log : log, + server : false, + sockets : [], + emit : emit, + broadcast : broadcast + } + ); +  + this.on( + 'close', + serverClosed.bind(this) + ); + } +  + onStart(socket){ + this.trigger( + 'start', + socket + ); + } +  + stop(){ + this.server.close(); + } +  + start(){ + Iif(!this.path){ + this.log('Socket Server Path not specified, refusing to start'); + return; + } +  + fs.unlink( + this.path, + startServer.bind(this) + ); + } +} +  function emit(socket, type, data){ this.log('dispatching event to socket', ' : ', type, data);   @@ -856,322 +935,288 @@ function emit(socket, type, data){ } }   -function init(path,config,log,port){ - let server={ - config : config, - path : path, - port : port, - udp4 : false, - udp6 : false, - log : log, - server : false, - sockets : [], - emit : emit, - broadcast : broadcast, - onStart : function onStart(socket){ - this.trigger( - 'start', - socket - ); - }, - stop:function stop(){ - server.server.close(); - }, - start : function start(){ - Iif(!this.path){ - server.log('Socket Server Path not specified, refusing to start'); +function serverClosed(){ + for(let i=0, count=this.sockets.length; i<count; i++){ + let socket=this.sockets[i]; + let destroyedSocketId=false; +  + Eif(socket){ + Iif(socket.readable){ + continue; + } + } +  + Iif(socket.id){ + destroyedSocketId=socket.id; + } +  + this.log('socket disconnected',destroyedSocketId.toString()); +  + Iif(socket && socket.destroy){ + socket.destroy(); + } +  + this.sockets.splice(i,1); +  + this.publish('socket.disconnected', socket, destroyedSocketId); +  + return; + } +} +  +function gotData(socket,data,UDPSocket){ + let sock=((this.udp4 || this.udp6)? UDPSocket : socket); + Iif(this.config.rawBuffer){ + data=new Buffer(data,this.config.encoding); + this.publish( + 'data', + data, + sock + ); + return; + } +  + Eif(!this.ipcBuffer){ + this.ipcBuffer=''; + } +  + data=(this.ipcBuffer+=data); +  + Iif(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){ + this.log('Messages are large, You may want to consider smaller messages.'); + return; + } +  + this.ipcBuffer=''; +  + data=eventParser.parse(data); +  + while(data.length>0){ + let message=new Message; + message.load(data.shift()); +  + this.log('received event of : ',message.type,message.data); +  + Eif(message.data.id){ + sock.id=message.data.id; + } +  + this.publish( + message.type, + message.data, + sock + ); + } +} +  +function socketClosed(socket){ + this.publish( + 'close', + socket + ); +} +  +function serverCreated(socket) { + this.sockets.push(socket); +  + if(socket.setEncoding){ + socket.setEncoding(this.config.encoding); + } +  + this.log('## socket connection to server detected ##'); + socket.on( + 'close', + socketClosed.bind(this) + ); +  + socket.on( + 'error', + function(err){ + this.log('server socket error',err); +  + this.publish('error',err); + }.bind(this) + ); +  + socket.on( + 'data', + gotData.bind(this,socket) + ); +  + socket.on( + 'message', + function(msg,rinfo) { + Iif (!rinfo){ return; }   - fs.unlink( - this.path, - function () { - server.log( - 'starting server on ',server.path, - ((server.port)?`:${server.port}`:'') - ); + this.log('Received UDP message from ', rinfo.address, rinfo.port); + let data;   - if(!server.udp4 && !server.udp6){ - Eif(!server.config.tls){ - server.server=net.createServer( - serverCreated - ); - }else{ - server.log('starting TLS server',server.config.tls); - if(server.config.tls.private){ - server.config.tls.key=fs.readFileSync(server.config.tls.private); - }else{ - server.config.tls.key=fs.readFileSync(`${__dirname}/../local-node-ipc-certs/private/server.key`); - } - if(server.config.tls.public){ - server.config.tls.cert=fs.readFileSync(server.config.tls.public); - }else{ - server.config.tls.cert=fs.readFileSync(`${__dirname}/../local-node-ipc-certs/server.pub`); - } - if(server.config.tls.dhparam){ - server.config.tls.dhparam=fs.readFileSync(server.config.tls.dhparam); - } - if(server.config.tls.trustedConnections){ - if(typeof server.config.tls.trustedConnections === 'string'){ - server.config.tls.trustedConnections=[server.config.tls.trustedConnections]; - } - server.config.tls.ca=[]; - for(let i=0; i<server.config.tls.trustedConnections.length; i++){ - server.config.tls.ca.push( - fs.readFileSync(server.config.tls.trustedConnections[i]) - ); - } - } - server.server=tls.createServer( - server.config.tls, - serverCreated - ); - } - }else{ - function UDPWrite(message,socket){ - let data=new Buffer(message, server.config.encoding); - server.server.send( - data, - 0, - data.length, - socket.port, - socket.address, - function(err, bytes) { - Iif(err){ - server.log('error writing data to socket',err); - server.trigger( - 'error', - function(err){ - server.trigger('error',err); - } - ); - } - } - ); - } -  - server.server=dgram.createSocket( - ((server.udp4)? 'udp4':'udp6') - ); - server.server.write=UDPWrite; - server.server.on( - 'listening', - function () { - serverCreated(server.server); - } - ); - } -  - server.server.on( - 'error', - function(err){ - server.log('server error',err); -  - server.trigger( - 'error', - err - ); - } - ); -  - server.server.maxConnections=server.config.maxConnections; -  - function serverCreated(socket) { - server.sockets.push(socket); -  - if(socket.setEncoding){ - socket.setEncoding(server.config.encoding); - } -  - server.log('## socket connection to server detected ##'); - socket.on( - 'close', - function(socket){ - server.trigger( - 'close', - socket - ); - } - ); -  - socket.on( - 'error', - function(err){ - server.log('server socket error',err); -  - server.trigger('error',err); - } - ); -  - socket.on( - 'data', - function(data,UDPSocket){ - let sock=((server.udp4 || server.udp6)? UDPSocket : socket); - Iif(server.config.rawBuffer){ - data=new Buffer(data,server.config.encoding); - server.trigger( - 'data', - data, - sock - ); - return; - } -  - Eif(!this.ipcBuffer){ - this.ipcBuffer=''; - } -  - data=(this.ipcBuffer+=data); -  - Iif(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){ - server.log('Messages are large, You may want to consider smaller messages.'); - return; - } -  - this.ipcBuffer=''; -  - data=eventParser.parse(data); -  - while(data.length>0){ - let message=new Message; - message.load(data.shift()); -  - server.log('received event of : ',message.type,message.data); -  - Eif(message.data.id){ - sock.id=message.data.id; - } -  - server.trigger( - message.type, - message.data, - sock - ); - } - } - ); -  - socket.on( - 'message', - function(msg,rinfo) { - Iif (!rinfo){ - return; - } -  - server.log('Received UDP message from ', rinfo.address, rinfo.port); - let data; -  - Iif(server.config.rawSocket){ - data=new Buffer(msg,server.config.encoding); - }else{ - data=msg.toString(); - } - socket.emit('data',data,rinfo); - } - ); -  - server.trigger( - 'connect', - socket - ); -  - Iif(server.config.rawBuffer){ - return; - } - } -  - function started(socket){ - server.onStart(socket); - } -  - if(!port){ - server.log('starting server as', 'Unix || Windows Socket'); - Iif (process.platform ==='win32'){ - server.path = server.path.replace(/^\//, ''); - server.path = server.path.replace(/\//g, '-'); - server.path= `\\\\.\\pipe\\${server.path}`; - } -  - server.server.listen( - server.path, - started - ); -  - return; - } -  - if(!server.udp4 && !server.udp6){ - server.log('starting server as', (server.config.tls?'TLS':'TCP')); - server.server.listen( - server.port, - server.path, - started - ); - return; - } -  - server.log('starting server as',((server.udp4)? 'udp4':'udp6')); - server.server.bind( - server.port, - server.path - ); -  - started( - { - address : server.path, - port : server.port - } - ); - } - ); - } - }; -  - new Pubsub(server); -  - server.on( - 'close', - function(){ - for(let i=0, count=server.sockets.length; i<count; i++){ - let socket=server.sockets[i]; - let destroyedSocketId=false; -  - Eif(socket){ - Iif(socket.readable){ - continue; - } - } -  - Iif(socket.id){ - destroyedSocketId=socket.id; - } -  - server.log('socket disconnected',destroyedSocketId.toString()); -  - Iif(socket && socket.destroy){ - socket.destroy(); - } -  - server.sockets.splice(i,1); -  - server.trigger('socket.disconnected', socket, destroyedSocketId); -  - return; + Iif(this.config.rawSocket){ + data=new Buffer(msg,this.config.encoding); + }else{ + data=msg.toString(); } + socket.emit('data',data,rinfo); + }.bind(this) + ); +  + this.publish( + 'connect', + socket + ); +  + Iif(this.config.rawBuffer){ + return; + } +} +  +function startServer() { + this.log( + 'starting server on ',this.path, + ((this.port)?`:${this.port}`:'') + ); +  + if(!this.udp4 && !this.udp6){ + Eif(!this.config.tls){ + this.log('starting TCP server',this.config.tls); + this.server=net.createServer( + serverCreated.bind(this) + ); + }else{ + startTLSServer.bind(this); + } + }else{ + this.server=dgram.createSocket( + ((this.udp4)? 'udp4':'udp6') + ); + this.server.write=UDPWrite.bind(this); + this.server.on( + 'listening', + function UDPServerStarted() { + serverCreated.bind(this)(this.server); + }.bind(this) + ); + } +  + this.server.on( + 'error', + function(err){ + this.log('server error',err); +  + this.publish( + 'error', + err + ); } );   - return server; + this.server.maxConnections=this.config.maxConnections; +  + if(!this.port){ + this.log('starting server as', 'Unix || Windows Socket'); + Iif (process.platform ==='win32'){ + this.path = this.path.replace(/^\//, ''); + this.path = this.path.replace(/\//g, '-'); + this.path= `\\\\.\\pipe\\${this.path}`; + } +  + this.server.listen( + this.path, + this.onStart.bind(this) + ); +  + return; + } +  + if(!this.udp4 && !this.udp6){ + this.log('starting server as', (this.config.tls?'TLS':'TCP')); + this.server.listen( + this.port, + this.path, + this.onStart.bind(this) + ); + return; + } +  + this.log('starting server as',((this.udp4)? 'udp4':'udp6')); +  + this.server.bind( + this.port, + this.path + ); +  + this.onStart( + { + address : this.path, + port : this.port + } + ); }   -module.exports=init; +function startTLSServer(){ + this.log('starting TLS server',this.config.tls); + if(this.config.tls.private){ + this.config.tls.key=fs.readFileSync(this.config.tls.private); + }else{ + this.config.tls.key=fs.readFileSync(`${__dirname}/../local-node-ipc-certs/private/server.key`); + } + if(this.config.tls.public){ + this.config.tls.cert=fs.readFileSync(this.config.tls.public); + }else{ + this.config.tls.cert=fs.readFileSync(`${__dirname}/../local-node-ipc-certs/server.pub`); + } + if(this.config.tls.dhparam){ + this.config.tls.dhparam=fs.readFileSync(this.config.tls.dhparam); + } + if(this.config.tls.trustedConnections){ + if(typeof this.config.tls.trustedConnections === 'string'){ + this.config.tls.trustedConnections=[this.config.tls.trustedConnections]; + } + this.config.tls.ca=[]; + for(let i=0; i<this.config.tls.trustedConnections.length; i++){ + this.config.tls.ca.push( + fs.readFileSync(this.config.tls.trustedConnections[i]) + ); + } + } + this.server=tls.createServer( + this.config.tls, + serverCreated.bind(this) + ); +} +  +function UDPWrite(message,socket){ + let data=new Buffer(message, this.config.encoding); + this.server.send( + data, + 0, + data.length, + socket.port, + socket.address, + function(err, bytes) { + Iif(err){ + this.log('error writing data to socket',err); + this.publish( + 'error', + function(err){ + this.publish('error',err); + } + ); + } + } + ); +} +  +module.exports=Server;  
diff --git a/spec/coverage/lcov-report/node-ipc/entities/Defaults.js.html b/spec/coverage/lcov-report/node-ipc/entities/Defaults.js.html index 31ba655..3ffab89 100644 --- a/spec/coverage/lcov-report/node-ipc/entities/Defaults.js.html +++ b/spec/coverage/lcov-report/node-ipc/entities/Defaults.js.html @@ -466,7 +466,7 @@ module.exports=Defaults; diff --git a/spec/coverage/lcov-report/node-ipc/entities/index.html b/spec/coverage/lcov-report/node-ipc/entities/index.html index df7dc93..b950379 100644 --- a/spec/coverage/lcov-report/node-ipc/entities/index.html +++ b/spec/coverage/lcov-report/node-ipc/entities/index.html @@ -77,7 +77,7 @@ diff --git a/spec/coverage/lcov-report/node-ipc/index.html b/spec/coverage/lcov-report/node-ipc/index.html index 4b53e16..6c16032 100644 --- a/spec/coverage/lcov-report/node-ipc/index.html +++ b/spec/coverage/lcov-report/node-ipc/index.html @@ -77,7 +77,7 @@ diff --git a/spec/coverage/lcov-report/node-ipc/node-ipc.js.html b/spec/coverage/lcov-report/node-ipc/node-ipc.js.html index b663a21..101335b 100644 --- a/spec/coverage/lcov-report/node-ipc/node-ipc.js.html +++ b/spec/coverage/lcov-report/node-ipc/node-ipc.js.html @@ -112,7 +112,7 @@ module.exports=new IPCModule; diff --git a/spec/coverage/lcov-report/node-ipc/services/IPC.js.html b/spec/coverage/lcov-report/node-ipc/services/IPC.js.html index 299c133..4757229 100644 --- a/spec/coverage/lcov-report/node-ipc/services/IPC.js.html +++ b/spec/coverage/lcov-report/node-ipc/services/IPC.js.html @@ -445,15 +445,15 @@     -114× +116×       -114× +116×   -114× -372× -344× +116× +376× +348×     28× @@ -465,7 +465,7 @@       -114× +116×       @@ -1063,7 +1063,7 @@ module.exports=IPC; diff --git a/spec/coverage/lcov-report/node-ipc/services/index.html b/spec/coverage/lcov-report/node-ipc/services/index.html index 4526416..5444c22 100644 --- a/spec/coverage/lcov-report/node-ipc/services/index.html +++ b/spec/coverage/lcov-report/node-ipc/services/index.html @@ -77,7 +77,7 @@ diff --git a/spec/coverage/lcov.info b/spec/coverage/lcov.info index 823ae33..a3b834a 100644 --- a/spec/coverage/lcov.info +++ b/spec/coverage/lcov.info @@ -26,7 +26,7 @@ FN:267,connectNet FNF:8 FNH:7 FNDA:1,(anonymous_1) -FNDA:114,log +FNDA:116,log FNDA:7,disconnect FNDA:1,serve FNDA:0,emptyCallback @@ -36,14 +36,14 @@ FNDA:3,connectNet DA:3,1 DA:10,1 DA:64,1 -DA:65,114 +DA:65,116 DA:66,0 -DA:69,114 -DA:71,114 -DA:72,372 -DA:73,344 +DA:69,116 +DA:71,116 +DA:72,376 +DA:73,348 DA:76,28 -DA:85,114 +DA:85,116 DA:90,1 DA:91,7 DA:92,0 @@ -171,8 +171,8 @@ DA:338,1 LF:135 LH:89 BRDA:65,1,0,0 -BRDA:65,1,1,114 -BRDA:72,2,0,344 +BRDA:65,1,1,116 +BRDA:72,2,0,348 BRDA:72,2,1,28 BRDA:91,3,0,0 BRDA:91,3,1,7 @@ -279,18 +279,18 @@ BRH:4 end_of_record TN: SF:/home/ssmp/git/node-ipc/dao/client.js -FN:11,init -FN:28,emit -FN:51,syncEmit -FN:56,connect -FN:123,(anonymous_5) -FN:132,connectionMade -FN:141,connectionClosed -FN:167,retryTimeout -FN:180,(anonymous_9) +FN:12,(anonymous_1) +FN:31,emit +FN:54,syncEmit +FN:59,connect +FN:126,(anonymous_5) +FN:135,connectionMade +FN:144,connectionClosed +FN:170,retryTimeout +FN:183,(anonymous_9) FNF:9 FNH:9 -FNDA:7,init +FNDA:7,(anonymous_1) FNDA:7,emit FNDA:6,syncEmit FNDA:13,connect @@ -300,146 +300,144 @@ FNDA:13,connectionClosed FNDA:6,retryTimeout FNDA:7,(anonymous_9) DA:3,1 -DA:11,1 -DA:12,7 -DA:23,7 -DA:25,7 -DA:28,1 -DA:29,7 -DA:31,7 +DA:13,7 +DA:14,7 +DA:31,1 DA:32,7 -DA:33,7 +DA:34,7 DA:35,7 -DA:36,0 +DA:36,7 DA:38,7 +DA:39,0 DA:41,7 -DA:42,1 -DA:43,1 -DA:46,6 -DA:51,1 -DA:52,6 -DA:53,6 -DA:56,1 -DA:58,13 -DA:60,13 +DA:44,7 +DA:45,1 +DA:46,1 +DA:49,6 +DA:54,1 +DA:55,6 +DA:56,6 +DA:59,1 DA:61,13 -DA:62,0 -DA:63,0 -DA:66,13 -DA:67,7 -DA:69,7 -DA:71,7 -DA:72,0 -DA:73,0 -DA:74,0 -DA:76,7 -DA:82,6 -DA:83,6 -DA:84,6 -DA:91,0 -DA:92,0 -DA:93,0 +DA:63,13 +DA:64,13 +DA:65,0 +DA:66,0 +DA:69,13 +DA:70,7 +DA:72,7 +DA:74,7 +DA:75,0 +DA:76,0 +DA:77,0 +DA:79,7 +DA:85,6 +DA:86,6 +DA:87,6 +DA:94,0 DA:95,0 DA:96,0 DA:98,0 DA:99,0 -DA:100,0 +DA:101,0 DA:102,0 DA:103,0 -DA:104,0 -DA:110,0 -DA:111,0 +DA:105,0 +DA:106,0 +DA:107,0 DA:113,0 -DA:119,13 -DA:121,13 -DA:124,10 -DA:125,10 -DA:130,13 -DA:133,3 -DA:134,3 -DA:135,3 -DA:139,13 +DA:114,0 +DA:116,0 +DA:122,13 +DA:124,13 +DA:127,10 +DA:128,10 +DA:133,13 +DA:136,3 +DA:137,3 +DA:138,3 DA:142,13 -DA:146,13 -DA:152,7 -DA:153,7 -DA:159,7 -DA:160,7 -DA:161,7 +DA:145,13 +DA:149,13 +DA:155,7 +DA:156,7 +DA:162,7 DA:163,7 -DA:166,6 -DA:168,6 +DA:164,7 +DA:166,7 DA:169,6 -DA:174,6 -DA:178,13 -DA:181,7 -DA:182,7 -DA:183,0 -DA:187,0 -DA:188,0 +DA:171,6 +DA:172,6 +DA:177,6 +DA:181,13 +DA:184,7 +DA:185,7 +DA:186,0 +DA:190,0 DA:191,0 -DA:192,0 -DA:195,7 -DA:196,7 +DA:194,0 +DA:195,0 +DA:198,7 DA:199,7 -DA:201,7 -DA:202,0 -DA:203,0 -DA:206,7 -DA:208,7 +DA:202,7 +DA:204,7 +DA:205,0 +DA:206,0 DA:209,7 -DA:210,7 DA:211,7 DA:212,7 +DA:213,7 DA:214,7 DA:215,7 -DA:221,7 -DA:222,0 -DA:225,7 -DA:230,1 -LF:98 -LH:70 -BRDA:19,1,0,7 -BRDA:19,1,1,0 -BRDA:35,2,0,0 -BRDA:35,2,1,7 -BRDA:41,3,0,1 -BRDA:41,3,1,6 -BRDA:61,4,0,0 -BRDA:61,4,1,13 -BRDA:66,5,0,7 -BRDA:66,5,1,6 -BRDA:71,6,0,0 -BRDA:71,6,1,7 -BRDA:71,7,0,7 -BRDA:71,7,1,0 -BRDA:82,8,0,6 -BRDA:82,8,1,0 -BRDA:92,9,0,0 -BRDA:92,9,1,0 -BRDA:95,10,0,0 -BRDA:95,10,1,0 -BRDA:98,11,0,0 -BRDA:98,11,1,0 -BRDA:99,12,0,0 -BRDA:99,12,1,0 -BRDA:146,13,0,7 -BRDA:146,13,1,6 -BRDA:147,14,0,13 -BRDA:147,14,1,8 -BRDA:147,14,2,6 -BRDA:182,15,0,0 -BRDA:182,15,1,7 -BRDA:187,16,0,0 -BRDA:187,16,1,0 -BRDA:195,17,0,7 -BRDA:195,17,1,0 -BRDA:201,18,0,0 -BRDA:201,18,1,7 -BRDA:201,19,0,7 -BRDA:201,19,1,7 -BRDA:221,20,0,0 -BRDA:221,20,1,7 +DA:217,7 +DA:218,7 +DA:224,7 +DA:225,0 +DA:228,7 +DA:233,1 +LF:96 +LH:68 +BRDA:24,1,0,7 +BRDA:24,1,1,0 +BRDA:38,2,0,0 +BRDA:38,2,1,7 +BRDA:44,3,0,1 +BRDA:44,3,1,6 +BRDA:64,4,0,0 +BRDA:64,4,1,13 +BRDA:69,5,0,7 +BRDA:69,5,1,6 +BRDA:74,6,0,0 +BRDA:74,6,1,7 +BRDA:74,7,0,7 +BRDA:74,7,1,0 +BRDA:85,8,0,6 +BRDA:85,8,1,0 +BRDA:95,9,0,0 +BRDA:95,9,1,0 +BRDA:98,10,0,0 +BRDA:98,10,1,0 +BRDA:101,11,0,0 +BRDA:101,11,1,0 +BRDA:102,12,0,0 +BRDA:102,12,1,0 +BRDA:149,13,0,7 +BRDA:149,13,1,6 +BRDA:150,14,0,13 +BRDA:150,14,1,8 +BRDA:150,14,2,6 +BRDA:185,15,0,0 +BRDA:185,15,1,7 +BRDA:190,16,0,0 +BRDA:190,16,1,0 +BRDA:198,17,0,7 +BRDA:198,17,1,0 +BRDA:204,18,0,0 +BRDA:204,18,1,7 +BRDA:204,19,0,7 +BRDA:204,19,1,7 +BRDA:224,20,0,0 +BRDA:224,20,1,7 BRF:41 BRH:21 end_of_record @@ -478,165 +476,161 @@ BRH:3 end_of_record TN: SF:/home/ssmp/git/node-ipc/dao/socketServer.js -FN:11,emit -FN:43,broadcast -FN:66,init -FN:78,onStart -FN:84,stop -FN:87,start -FN:95,(anonymous_7) -FN:138,UDPWrite -FN:146,(anonymous_9) -FN:151,(anonymous_10) -FN:166,(anonymous_11) -FN:174,(anonymous_12) -FN:186,serverCreated -FN:196,(anonymous_14) -FN:206,(anonymous_15) -FN:215,(anonymous_16) -FN:263,(anonymous_17) -FN:290,started -FN:341,(anonymous_19) +FN:12,(anonymous_1) +FN:36,(anonymous_2) +FN:43,(anonymous_3) +FN:47,(anonymous_4) +FN:60,emit +FN:92,broadcast +FN:115,serverClosed +FN:144,gotData +FN:189,socketClosed +FN:196,serverCreated +FN:211,(anonymous_11) +FN:225,(anonymous_12) +FN:252,startServer +FN:274,UDPServerStarted +FN:282,(anonymous_15) +FN:335,startTLSServer +FN:367,UDPWrite +FN:375,(anonymous_18) +FN:380,(anonymous_19) FNF:19 -FNH:15 +FNH:14 +FNDA:4,(anonymous_1) +FNDA:4,(anonymous_2) +FNDA:4,(anonymous_3) +FNDA:4,(anonymous_4) FNDA:2,emit FNDA:0,broadcast -FNDA:4,init -FNDA:4,onStart -FNDA:4,stop -FNDA:4,start -FNDA:4,(anonymous_7) -FNDA:2,UDPWrite -FNDA:2,(anonymous_9) -FNDA:0,(anonymous_10) -FNDA:2,(anonymous_11) -FNDA:0,(anonymous_12) +FNDA:2,serverClosed +FNDA:2,gotData +FNDA:2,socketClosed FNDA:4,serverCreated -FNDA:2,(anonymous_14) +FNDA:0,(anonymous_11) +FNDA:2,(anonymous_12) +FNDA:4,startServer +FNDA:2,UDPServerStarted FNDA:0,(anonymous_15) -FNDA:2,(anonymous_16) -FNDA:2,(anonymous_17) -FNDA:4,started -FNDA:2,(anonymous_19) +FNDA:0,startTLSServer +FNDA:2,UDPWrite +FNDA:2,(anonymous_18) +FNDA:0,(anonymous_19) DA:3,1 -DA:11,1 -DA:12,2 -DA:14,2 -DA:15,2 -DA:16,2 -DA:18,2 -DA:19,0 -DA:20,0 -DA:22,2 -DA:25,2 -DA:27,2 -DA:28,0 -DA:29,0 -DA:30,0 -DA:33,2 -DA:37,2 -DA:40,0 -DA:43,1 -DA:44,0 -DA:45,0 -DA:46,0 -DA:47,0 +DA:13,4 +DA:14,4 +DA:30,4 +DA:37,4 +DA:44,4 +DA:48,4 DA:49,0 DA:50,0 -DA:52,0 -DA:55,0 -DA:56,0 -DA:57,0 -DA:60,0 -DA:61,0 -DA:66,1 -DA:67,4 -DA:79,4 -DA:85,4 -DA:88,4 +DA:53,4 +DA:60,1 +DA:61,2 +DA:63,2 +DA:64,2 +DA:65,2 +DA:67,2 +DA:68,0 +DA:69,0 +DA:71,2 +DA:74,2 +DA:76,2 +DA:77,0 +DA:78,0 +DA:79,0 +DA:82,2 +DA:86,2 DA:89,0 -DA:90,0 -DA:93,4 -DA:96,4 -DA:101,4 -DA:102,2 -DA:103,2 -DA:107,0 -DA:108,0 +DA:92,1 +DA:93,0 +DA:94,0 +DA:95,0 +DA:96,0 +DA:98,0 +DA:99,0 +DA:101,0 +DA:104,0 +DA:105,0 +DA:106,0 DA:109,0 -DA:111,0 -DA:113,0 -DA:114,0 -DA:116,0 -DA:118,0 -DA:119,0 -DA:121,0 +DA:110,0 +DA:115,1 +DA:116,2 +DA:117,2 +DA:118,2 +DA:120,2 +DA:121,2 DA:122,0 -DA:123,0 -DA:125,0 -DA:126,0 +DA:126,2 DA:127,0 -DA:132,0 -DA:138,1 -DA:139,2 +DA:130,2 +DA:132,2 +DA:133,0 +DA:136,2 +DA:138,2 DA:140,2 -DA:147,2 +DA:144,1 +DA:145,2 +DA:146,2 +DA:147,0 DA:148,0 -DA:149,0 -DA:152,0 +DA:153,0 +DA:156,2 +DA:157,2 DA:160,2 -DA:163,2 -DA:164,2 +DA:162,2 +DA:163,0 +DA:164,0 DA:167,2 -DA:172,4 -DA:175,0 -DA:177,0 -DA:184,4 -DA:186,1 -DA:187,4 -DA:189,4 +DA:169,2 +DA:171,2 +DA:172,2 +DA:173,2 +DA:175,2 +DA:177,2 +DA:178,2 +DA:181,2 +DA:189,1 DA:190,2 -DA:193,4 -DA:194,4 -DA:197,2 +DA:196,1 +DA:197,4 +DA:199,4 +DA:200,2 +DA:203,4 DA:204,4 -DA:207,0 -DA:209,0 -DA:213,4 -DA:216,2 -DA:217,2 -DA:218,0 -DA:219,0 -DA:224,0 -DA:227,2 -DA:228,2 +DA:209,4 +DA:212,0 +DA:214,0 +DA:218,4 +DA:223,4 +DA:226,2 +DA:227,0 +DA:230,2 DA:231,2 DA:233,2 DA:234,0 -DA:235,0 +DA:236,2 DA:238,2 -DA:240,2 -DA:242,2 -DA:243,2 -DA:244,2 -DA:246,2 -DA:248,2 -DA:249,2 -DA:252,2 -DA:261,4 -DA:264,2 +DA:242,4 +DA:247,4 +DA:248,0 +DA:252,1 +DA:253,4 +DA:258,4 +DA:259,2 +DA:260,2 +DA:261,2 DA:265,0 DA:268,2 -DA:269,2 DA:271,2 -DA:272,0 -DA:274,2 -DA:276,2 +DA:272,2 +DA:275,2 DA:280,4 -DA:285,4 -DA:286,0 -DA:290,1 -DA:291,4 +DA:283,0 +DA:285,0 +DA:292,4 DA:294,4 DA:295,1 DA:296,1 @@ -650,114 +644,121 @@ DA:311,1 DA:312,1 DA:317,1 DA:320,2 -DA:321,2 -DA:326,2 -DA:337,4 -DA:339,4 -DA:342,2 -DA:343,2 -DA:344,2 -DA:346,2 -DA:347,2 +DA:322,2 +DA:327,2 +DA:335,1 +DA:336,0 +DA:337,0 +DA:338,0 +DA:340,0 +DA:342,0 +DA:343,0 +DA:345,0 +DA:347,0 DA:348,0 -DA:352,2 -DA:353,0 -DA:356,2 -DA:358,2 -DA:359,0 -DA:362,2 -DA:364,2 -DA:366,2 -DA:371,4 -DA:374,1 -LF:152 -LH:95 -BRDA:18,1,0,0 -BRDA:18,1,1,2 -BRDA:25,2,0,2 -BRDA:25,2,1,0 -BRDA:25,3,0,2 -BRDA:25,3,1,1 -BRDA:27,4,0,0 -BRDA:27,4,1,2 -BRDA:27,5,0,2 -BRDA:27,5,1,2 -BRDA:44,6,0,0 -BRDA:44,6,1,0 -BRDA:49,7,0,0 -BRDA:49,7,1,0 -BRDA:55,8,0,0 -BRDA:55,8,1,0 -BRDA:55,9,0,0 -BRDA:55,9,1,0 -BRDA:88,10,0,0 -BRDA:88,10,1,4 -BRDA:98,11,0,3 -BRDA:98,11,1,1 -BRDA:101,12,0,2 -BRDA:101,12,1,2 -BRDA:101,13,0,4 -BRDA:101,13,1,3 -BRDA:102,14,0,2 -BRDA:102,14,1,0 -BRDA:108,15,0,0 -BRDA:108,15,1,0 -BRDA:113,16,0,0 -BRDA:113,16,1,0 -BRDA:118,17,0,0 -BRDA:118,17,1,0 -BRDA:121,18,0,0 -BRDA:121,18,1,0 -BRDA:122,19,0,0 -BRDA:122,19,1,0 -BRDA:147,20,0,0 -BRDA:147,20,1,2 -BRDA:161,21,0,1 -BRDA:161,21,1,1 -BRDA:189,22,0,2 -BRDA:189,22,1,2 -BRDA:216,23,0,2 -BRDA:216,23,1,0 -BRDA:216,24,0,2 -BRDA:216,24,1,1 -BRDA:217,25,0,0 -BRDA:217,25,1,2 -BRDA:227,26,0,2 -BRDA:227,26,1,0 -BRDA:233,27,0,0 -BRDA:233,27,1,2 -BRDA:233,28,0,2 -BRDA:233,28,1,2 -BRDA:248,29,0,2 -BRDA:248,29,1,0 -BRDA:264,30,0,0 -BRDA:264,30,1,2 -BRDA:271,31,0,0 -BRDA:271,31,1,2 -BRDA:285,32,0,0 -BRDA:285,32,1,4 -BRDA:294,33,0,1 -BRDA:294,33,1,3 -BRDA:296,34,0,0 -BRDA:296,34,1,1 -BRDA:310,35,0,1 +DA:350,0 +DA:351,0 +DA:352,0 +DA:354,0 +DA:355,0 +DA:356,0 +DA:361,0 +DA:367,1 +DA:368,2 +DA:369,2 +DA:376,2 +DA:377,0 +DA:378,0 +DA:381,0 +DA:389,1 +LF:155 +LH:97 +BRDA:48,1,0,0 +BRDA:48,1,1,4 +BRDA:67,2,0,0 +BRDA:67,2,1,2 +BRDA:74,3,0,2 +BRDA:74,3,1,0 +BRDA:74,4,0,2 +BRDA:74,4,1,1 +BRDA:76,5,0,0 +BRDA:76,5,1,2 +BRDA:76,6,0,2 +BRDA:76,6,1,2 +BRDA:93,7,0,0 +BRDA:93,7,1,0 +BRDA:98,8,0,0 +BRDA:98,8,1,0 +BRDA:104,9,0,0 +BRDA:104,9,1,0 +BRDA:104,10,0,0 +BRDA:104,10,1,0 +BRDA:120,11,0,2 +BRDA:120,11,1,0 +BRDA:121,12,0,0 +BRDA:121,12,1,2 +BRDA:126,13,0,0 +BRDA:126,13,1,2 +BRDA:132,14,0,0 +BRDA:132,14,1,2 +BRDA:132,15,0,2 +BRDA:132,15,1,2 +BRDA:145,16,0,2 +BRDA:145,16,1,0 +BRDA:145,17,0,2 +BRDA:145,17,1,1 +BRDA:146,18,0,0 +BRDA:146,18,1,2 +BRDA:156,19,0,2 +BRDA:156,19,1,0 +BRDA:162,20,0,0 +BRDA:162,20,1,2 +BRDA:162,21,0,2 +BRDA:162,21,1,2 +BRDA:177,22,0,2 +BRDA:177,22,1,0 +BRDA:199,23,0,2 +BRDA:199,23,1,2 +BRDA:226,24,0,0 +BRDA:226,24,1,2 +BRDA:233,25,0,0 +BRDA:233,25,1,2 +BRDA:247,26,0,0 +BRDA:247,26,1,4 +BRDA:255,27,0,3 +BRDA:255,27,1,1 +BRDA:258,28,0,2 +BRDA:258,28,1,2 +BRDA:258,29,0,4 +BRDA:258,29,1,3 +BRDA:259,30,0,2 +BRDA:259,30,1,0 +BRDA:269,31,0,1 +BRDA:269,31,1,1 +BRDA:294,32,0,1 +BRDA:294,32,1,3 +BRDA:296,33,0,0 +BRDA:296,33,1,1 +BRDA:310,34,0,1 +BRDA:310,34,1,2 +BRDA:310,35,0,3 BRDA:310,35,1,2 -BRDA:310,36,0,3 -BRDA:310,36,1,2 -BRDA:311,37,0,0 -BRDA:311,37,1,1 -BRDA:320,38,0,1 -BRDA:320,38,1,1 -BRDA:346,39,0,2 -BRDA:346,39,1,0 +BRDA:311,36,0,0 +BRDA:311,36,1,1 +BRDA:320,37,0,1 +BRDA:320,37,1,1 +BRDA:337,38,0,0 +BRDA:337,38,1,0 +BRDA:342,39,0,0 +BRDA:342,39,1,0 BRDA:347,40,0,0 -BRDA:347,40,1,2 -BRDA:352,41,0,0 -BRDA:352,41,1,2 -BRDA:358,42,0,0 -BRDA:358,42,1,2 -BRDA:358,43,0,2 -BRDA:358,43,1,2 +BRDA:347,40,1,0 +BRDA:350,41,0,0 +BRDA:350,41,1,0 +BRDA:351,42,0,0 +BRDA:351,42,1,0 +BRDA:376,43,0,0 +BRDA:376,43,1,2 BRF:86 BRH:48 end_of_record diff --git a/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js b/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js index 57d10b3..af57b04 100644 --- a/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js +++ b/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js @@ -18,7 +18,7 @@ describe('TCP Socket verification of client', 'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.', function testIt(done){ ipc.config.id ='testClient'; - ipc.config.retry = 600; + ipc.config.retry = 60; ipc.config.maxRetries = 3; ipc.config.stopRetrying = false; diff --git a/spec/support/jasmineTest/UDP/udpSocketClient.spec.js b/spec/support/jasmineTest/UDP/udpSocketClient.spec.js index 86f4327..8faa8ba 100644 --- a/spec/support/jasmineTest/UDP/udpSocketClient.spec.js +++ b/spec/support/jasmineTest/UDP/udpSocketClient.spec.js @@ -11,7 +11,7 @@ describe( function testIt(done){ ipc.config.networkPort=8095; ipc.config.id ='testClient'; - ipc.config.retry = 600; + ipc.config.retry = 60; let clientPort=8001; @@ -65,7 +65,7 @@ describe( function testIt(done){ ipc.config.networkPort=8099; ipc.config.id ='testClient'; - ipc.config.retry = 600; + ipc.config.retry = 60; let clientPort=8010; diff --git a/spec/support/jasmineTest/Unix/unixSocketClient.spec.js b/spec/support/jasmineTest/Unix/unixSocketClient.spec.js index 7da2500..d0ddb24 100644 --- a/spec/support/jasmineTest/Unix/unixSocketClient.spec.js +++ b/spec/support/jasmineTest/Unix/unixSocketClient.spec.js @@ -4,7 +4,7 @@ const ipc = require('../../../../node-ipc'); ipc.config.id ='testClient'; -ipc.config.retry = 600; +ipc.config.retry = 60; describe('Test Cases for Unix client: ', function UnixClientSpec(){ diff --git a/spec/support/jasmineTest/udp4Server.js b/spec/support/jasmineTest/udp4Server.js index 44e4906..8aa8a96 100644 --- a/spec/support/jasmineTest/udp4Server.js +++ b/spec/support/jasmineTest/udp4Server.js @@ -2,7 +2,7 @@ const ipc=require('../../../node-ipc'); const process=require('process'); -const dieAfter=30000; +const dieAfter=60000; //die after 60 seconds setTimeout( @@ -21,10 +21,22 @@ ipc.config.networkPort=8095; ipc.serveNet( 'udp4', function serverStarted(){ + console.log(` + + UP + + + `); ipc.server.on( 'message', function gotMessage(data,socket){ - ipc.server.emit( + console.log(` + + MESSAGE + + + `); + ipc.server.emit( socket, 'message', { diff --git a/spec/support/jasmineTest/udp6Server.js b/spec/support/jasmineTest/udp6Server.js index 79b5698..edfb7a2 100644 --- a/spec/support/jasmineTest/udp6Server.js +++ b/spec/support/jasmineTest/udp6Server.js @@ -2,7 +2,7 @@ const ipc=require('../../../node-ipc'); const process=require('process'); -const dieAfter=30000; +const dieAfter=60000; //die after 60 seconds setTimeout(