Fixed issue with server not emitting message in unixSocket example

This commit is contained in:
Walter P. Little 2014-02-27 12:23:53 -08:00
parent 14f16b2bb2
commit f986c5ec39

View file

@ -16,7 +16,8 @@ ipc.serve(
'message',
function(data,socket){
ipc.log('got a message : '.debug, data);
socket.emit(
ipc.server.emit(
socket,
'message',
data+' world!'
);
@ -27,4 +28,4 @@ ipc.serve(
ipc.server.define.listen.message='This event type listens for message strings as value of data key.';
ipc.server.start();
ipc.server.start();