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

docs: typo #1060

Merged
merged 2 commits into from
Jun 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/source/zh-cn/core/cluster-and-ipc.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,14 @@ if (cluster.isMaster) {

- `app.messenger.broadcast(action, data)`:发送给所有的 agent / app 进程(包括自己)
- `app.messenger.sendToApp(action, data)`: 发送给所有的 app 进程
- 在 app 调用该方法上会发送给自己和其他的 app 进程
- 在 app 上调用该方法会发送给自己和其他的 app 进程
- 在 agent 上调用该方法会发送给所有的 app 进程
- `app.messenger.sendToAgent(action, data)`: 发送给 agent 进程
- 在 app 调用该方法上会发送 agent 进程
- 在 app 上调用该方法会发送给 agent 进程
- 在 agent 上调用该方法会发送给 agent 自己
- `agent.messenger.sendRandom(action, data)`:
- app 上没有该方法(现在 Egg 的实现是等同于 sentToAgent)
- agent 上回随机发送消息给一个 app 进程(由 master 来控制发送给谁)
- agent 会随机发送消息给一个 app 进程(由 master 来控制发送给谁)
- `app.messenger.sendTo(pid, action, data)`: 发送给指定进程

```js
Expand Down
2 changes: 1 addition & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Application extends EggApplication {
}

/**
* Create an anonymouse context, the context isn't request level, so the request is mocked.
* Create an anonymous context, the context isn't request level, so the request is mocked.
* then you can use context level API like `ctx.service`
* @member {String} Application#createAnonymousContext
* @param {Request} req - if you want to mock request like querystring, you can pass an object to this function.
Expand Down