File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -613,24 +613,6 @@ Emitted when the cluster master receives a message from any worker.
613
613
614
614
See [ ` child_process ` event: ` 'message' ` ] [ ] .
615
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
616
## Event: 'online'
635
617
<!-- YAML
636
618
added: v0.7.0
You can’t perform that action at this time.
0 commit comments