coding style fixes
This commit is contained in:
parent
1fe7e543ee
commit
32cfa88d9b
7 changed files with 12 additions and 4 deletions
|
@ -182,8 +182,9 @@ function init(path,config,log,port){
|
|||
function serverCreated(socket) {
|
||||
server.sockets.push(socket);
|
||||
|
||||
if(socket.setEncoding)
|
||||
if(socket.setEncoding){
|
||||
socket.setEncoding(server.config.encoding);
|
||||
}
|
||||
|
||||
server.log('## socket connection to server detected ##'.rainbow);
|
||||
socket.on(
|
||||
|
@ -219,8 +220,9 @@ function init(path,config,log,port){
|
|||
return;
|
||||
}
|
||||
|
||||
if(!this.ipcBuffer)
|
||||
if(!this.ipcBuffer){
|
||||
this.ipcBuffer='';
|
||||
}
|
||||
|
||||
data=(this.ipcBuffer+=data);
|
||||
|
||||
|
@ -254,8 +256,10 @@ function init(path,config,log,port){
|
|||
socket.on(
|
||||
'message',
|
||||
function(msg,rinfo) {
|
||||
if (!rinfo)
|
||||
if (!rinfo){
|
||||
return;
|
||||
}
|
||||
|
||||
server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);
|
||||
let data;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/*global describe, expect, it*/
|
||||
'use strict';
|
||||
|
||||
const ipc = require('../../../../node-ipc');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/*global describe, expect, it*/
|
||||
'use strict';
|
||||
|
||||
const ipc = require('../../../../node-ipc');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/*global describe, expect, it*/
|
||||
'use strict';
|
||||
|
||||
const ipc = require('../../../../node-ipc');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/*global describe, expect, it*/
|
||||
'use strict';
|
||||
|
||||
const ipc = require('../../../../node-ipc');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/*global describe, expect, it*/
|
||||
'use strict';
|
||||
|
||||
const ipc = require('../../../../node-ipc');
|
||||
|
|
|
@ -20,7 +20,6 @@ ipc.config.silent=true;
|
|||
ipc.serve(
|
||||
function serverStarted(){
|
||||
let ready=false;
|
||||
let messageDelay=500;
|
||||
|
||||
ipc.server.on(
|
||||
'message',
|
||||
|
|
Loading…
Reference in a new issue