diff --git a/example/TCPSocket/basic/world-server.js b/example/TCPSocket/basic/world-server.js index 9f7c675..ee0b2a5 100644 --- a/example/TCPSocket/basic/world-server.js +++ b/example/TCPSocket/basic/world-server.js @@ -16,7 +16,8 @@ ipc.serveNet( 'message', function(data,socket){ ipc.log('got a message : '.debug, data); - socket.emit( + ipc.server.emit( + socket, 'message', data+' world!' );