Skip to content
Browse files

doc: remove incorrect and outdated example

PR-URL: #30138
Reviewed-By: Colin Ihrig <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Anna Henningsen <>
Reviewed-By: Rich Trott <>
Reviewed-By: Franziska Hinkelmann <>
Reviewed-By: Trivikram Kamat <>
  • Loading branch information...
tniessen committed Oct 26, 2019
1 parent f185990 commit 5783ed7667d2aab87d30ffddbb5cd7c1c5099cb6
Showing with 0 additions and 18 deletions.
  1. +0 −18 doc/api/
@@ -613,24 +613,6 @@ Emitted when the cluster master receives a message from any worker.

See [`child_process` event: `'message'`][].

Before Node.js v6.0, this event emitted only the message and the handle,
but not the worker object, contrary to what the documentation stated.

If support for older versions is required but a worker object is not
required, it is possible to work around the discrepancy by checking the
number of arguments:

cluster.on('message', (worker, message, handle) => {
if (arguments.length === 2) {
handle = message;
message = worker;
worker = undefined;
// ...

## Event: 'online'
<!-- YAML
added: v0.7.0

0 comments on commit 5783ed7

Please sign in to comment.
You can’t perform that action at this time.