We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c23224 commit e4ab6fcCopy full SHA for e4ab6fc
doc/api/cluster.md
@@ -613,24 +613,6 @@ Emitted when the cluster master receives a message from any worker.
613
614
See [`child_process` event: `'message'`][].
615
616
-Before Node.js v6.0, this event emitted only the message and the handle,
617
-but not the worker object, contrary to what the documentation stated.
618
-
619
-If support for older versions is required but a worker object is not
620
-required, it is possible to work around the discrepancy by checking the
621
-number of arguments:
622
623
-```js
624
-cluster.on('message', (worker, message, handle) => {
625
- if (arguments.length === 2) {
626
- handle = message;
627
- message = worker;
628
- worker = undefined;
629
- }
630
- // ...
631
-});
632
-```
633
634
## Event: 'online'
635
<!-- YAML
636
added: v0.7.0
0 commit comments