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) {
|
function serverCreated(socket) {
|
||||||
server.sockets.push(socket);
|
server.sockets.push(socket);
|
||||||
|
|
||||||
if(socket.setEncoding)
|
if(socket.setEncoding){
|
||||||
socket.setEncoding(server.config.encoding);
|
socket.setEncoding(server.config.encoding);
|
||||||
|
}
|
||||||
|
|
||||||
server.log('## socket connection to server detected ##'.rainbow);
|
server.log('## socket connection to server detected ##'.rainbow);
|
||||||
socket.on(
|
socket.on(
|
||||||
|
@ -219,8 +220,9 @@ function init(path,config,log,port){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this.ipcBuffer)
|
if(!this.ipcBuffer){
|
||||||
this.ipcBuffer='';
|
this.ipcBuffer='';
|
||||||
|
}
|
||||||
|
|
||||||
data=(this.ipcBuffer+=data);
|
data=(this.ipcBuffer+=data);
|
||||||
|
|
||||||
|
@ -254,8 +256,10 @@ function init(path,config,log,port){
|
||||||
socket.on(
|
socket.on(
|
||||||
'message',
|
'message',
|
||||||
function(msg,rinfo) {
|
function(msg,rinfo) {
|
||||||
if (!rinfo)
|
if (!rinfo){
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);
|
server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);
|
||||||
let data;
|
let data;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/*global describe, expect, it*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const ipc = require('../../../../node-ipc');
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/*global describe, expect, it*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const ipc = require('../../../../node-ipc');
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/*global describe, expect, it*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const ipc = require('../../../../node-ipc');
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/*global describe, expect, it*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const ipc = require('../../../../node-ipc');
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/*global describe, expect, it*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const ipc = require('../../../../node-ipc');
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
|
@ -20,7 +20,6 @@ ipc.config.silent=true;
|
||||||
ipc.serve(
|
ipc.serve(
|
||||||
function serverStarted(){
|
function serverStarted(){
|
||||||
let ready=false;
|
let ready=false;
|
||||||
let messageDelay=500;
|
|
||||||
|
|
||||||
ipc.server.on(
|
ipc.server.on(
|
||||||
'message',
|
'message',
|
||||||
|
|
Loading…
Reference in a new issue