From 87e4bfd58216b1a1a3fa5bb957550e1d44695fdb Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Fri, 13 Feb 2015 13:41:00 -0800 Subject: [PATCH] doc: link cluster worker.send() to child.send() PR-URL: https://github.com/iojs/io.js/pull/839 Reviewed-By: Brendan Ashworth --- doc/api/cluster.markdown | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/api/cluster.markdown b/doc/api/cluster.markdown index 11c48cefc0c69f..85ab523af22382 100644 --- a/doc/api/cluster.markdown +++ b/doc/api/cluster.markdown @@ -420,11 +420,13 @@ exit, the master may choose not to respawn a worker based on this value. * `message` {Object} * `sendHandle` {Handle object} -This function is equal to the send methods provided by -`child_process.fork()`. In the master you should use this function to -send a message to a specific worker. +Send a message to a worker or master, optionally with a handle. -In a worker you can also use `process.send(message)`, it is the same function. +In the master this sends a message to a specific worker. It is identical to +[child.send()](child_process.html#child_process_child_send_message_sendhandle). + +In a worker this sends a message to the master. It is identical to +`process.send()`. This example will echo back all messages from the master: