Skip to content
Permalink
Browse files

doc: make example more clarified in cluster.md

PR-URL: #23931
Refs: #23930
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information...
ZYSzys authored and MylesBorins committed Oct 28, 2018
1 parent 4eab8a1 commit 6099f5cbdcef031f7d0b1e2b119c49b1ccefaf80
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/api/cluster.md
@@ -198,8 +198,8 @@ Within a worker, `process.on('message')` may also be used.

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

As an example, here is a cluster that keeps count of the number of requests
in the master process using the message system:
Here is an example using the message system. It keeps a count in the master
process of the number of HTTP requests received by the workers:

```js
const cluster = require('cluster');

0 comments on commit 6099f5c

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