Revert "Added 'socket.disconnect' to event list in docs"
This reverts commit c4578386ed
.
This commit is contained in:
parent
11f262418d
commit
234a3fa16e
1 changed files with 1 additions and 8 deletions
|
@ -453,8 +453,7 @@ or specifying everything UDP
|
||||||
|----------|------|----------|
|
|----------|------|----------|
|
||||||
|error|err obj|triggered when an error has occured|
|
|error|err obj|triggered when an error has occured|
|
||||||
|connect||triggered when socket connected|
|
|connect||triggered when socket connected|
|
||||||
|disconnect||triggered on client when socket disconnected|
|
|disconnect||triggered when socket disconnected|
|
||||||
|socket.disconnect||triggered on server when a client socket disconnected|
|
|
||||||
|destroy||triggered when socket has been totally destroyed, no further auto retries will happen and all references are gone.|
|
|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.|
|
|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}} ` |
|
|***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!')
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue