From ae5cf39375124bd1db872d9be56912132b9ca7ab Mon Sep 17 00:00:00 2001 From: Stealthmate Date: Tue, 13 Sep 2016 20:30:17 +0300 Subject: [PATCH] Revert "Revert "evert "Added 'socket.disconnect' to event list in docs""" This reverts commit 11f262418d3b15911e9a731257d4b31043ff2483. --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index a920568..e925d78 100644 --- a/README.md +++ b/README.md @@ -453,8 +453,7 @@ or specifying everything UDP |----------|------|----------| |error|err obj|triggered when an error has occured| |connect||triggered when socket connected| -|disconnect||triggered on client when socket disconnected| -|socket.disconnect||triggered on server when a client socket disconnected| +|disconnect||triggered when socket disconnected| |destroy||triggered when socket has been totally destroyed, no further auto retries will happen and all references are gone.| |data|buffer|triggered when ipc.config.rawBuffer is true and a message is received.| |***your event type***|***your event data***|triggered when a JSON message is received. The event name will be the type string from your message and the param will be the data object from your message eg : ` { type:'myEvent',data:{a:1}} ` | @@ -520,12 +519,6 @@ The server is the process keeping a socket for IPC open. Multiple sockets can co ); } ); - ipc.server.on( - 'socket.disconnect', - function(socket, socketID) { - ipc.log('client ' + socketID + ' disconnected from me!') - } - ); } );