Update socketServer.js

This commit is contained in:
liaoxuezhi 2016-05-31 23:13:13 +08:00
parent 0c5156cf15
commit b0b0f38a78

View file

@ -16,7 +16,7 @@ function emit(socket, type, data){
message.data=data; message.data=data;
if(this.config.rawBuffer){ if(this.config.rawBuffer){
console.log(this.config.encoding) this.log(this.config.encoding)
message=new Buffer(type,this.config.encoding); message=new Buffer(type,this.config.encoding);
}else{ }else{
message=eventParser.format(message); message=eventParser.format(message);