diff --git a/dao/socketServer.js b/dao/socketServer.js index b192b41..bd60d83 100644 --- a/dao/socketServer.js +++ b/dao/socketServer.js @@ -58,10 +58,14 @@ class Server extends Events{ return; } - fs.unlink( - this.path, - startServer.bind(this) - ); + if(this.config.unlink){} + fs.unlink( + this.path, + startServer.bind(this) + ); + }else{ + startServer.bind(this)(); + } } } diff --git a/entities/Defaults.js b/entities/Defaults.js index 19623d4..081f093 100644 --- a/entities/Defaults.js +++ b/entities/Defaults.js @@ -28,6 +28,7 @@ class Defaults{ this.encoding='utf8'; this.rawBuffer=false; this.sync=false; + this.unlink=true; this.delimiter='\f';