From f986c5ec39642e5db41a447c5917543888f26427 Mon Sep 17 00:00:00 2001 From: "Walter P. Little" Date: Thu, 27 Feb 2014 12:23:53 -0800 Subject: [PATCH] Fixed issue with server not emitting message in unixSocket example --- example/unixSocket/basic/world-server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/unixSocket/basic/world-server.js b/example/unixSocket/basic/world-server.js index b42ef0f..8e695d3 100644 --- a/example/unixSocket/basic/world-server.js +++ b/example/unixSocket/basic/world-server.js @@ -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(); \ No newline at end of file +ipc.server.start();