Commit f903750d authored by guanghongwei's avatar guanghongwei

fixbug

parent 61ac985e
...@@ -82,7 +82,7 @@ io.on('connection', function(socket){ ...@@ -82,7 +82,7 @@ io.on('connection', function(socket){
//向所有客户端广播发布的消息 //向所有客户端广播发布的消息
io.emit('message', obj); io.emit('message', obj);
socket.emit('message',obj); socket.emit('message',obj);
console.log(obj.username+'说:'+obj.content); //console.log(obj.username+'说:'+obj.content);
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment