Fixed issue with server not emitting message in unixSocket example
This commit is contained in:
parent
14f16b2bb2
commit
f986c5ec39
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,8 @@ ipc.serve(
|
||||||
'message',
|
'message',
|
||||||
function(data,socket){
|
function(data,socket){
|
||||||
ipc.log('got a message : '.debug, data);
|
ipc.log('got a message : '.debug, data);
|
||||||
socket.emit(
|
ipc.server.emit(
|
||||||
|
socket,
|
||||||
'message',
|
'message',
|
||||||
data+' world!'
|
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.define.listen.message='This event type listens for message strings as value of data key.';
|
||||||
|
|
||||||
ipc.server.start();
|
ipc.server.start();
|
||||||
|
|
Loading…
Reference in a new issue