Merge branch 'master' of https://github.com/RIAEvangelist/node-ipc into brandon

This commit is contained in:
Brandon Miller 2014-03-01 16:31:58 -08:00
commit d19312f495

View file

@ -158,6 +158,21 @@ or only explicitly setting port and callback
} }
); );
----
##### disconnect
``ipc.disconnect(id)``
Used to disconnect a client from a Unix, TCP or TLS socket. The socket and its refrence will be removed from memory and the ``ipc.of`` scope. This can be local or remote. UDP clients do not maintain connections and so there are no Clients and this method has no value to them.
| variable | required | definition |
|----------|----------|------------|
| id | required | is the string id of the socket from which to disconnect. |
**examples**
ipc.disconnect('world');
---- ----
##### serve ##### serve
``ipc.serve(path,callback);`` ``ipc.serve(path,callback);``