Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: make example more clarified in cluster.md #23931

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion doc/api/cluster.md
Expand Up @@ -199,7 +199,10 @@ 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:
in the master process using the message system.

Note that when this example running, you need to open browser and visit `http://localhost:8000`
or open another terminal window and run `curl http://localhost:8000` to see `numReqs` increasing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the new sentence is necessary with the changes to the existing sentence.


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