Skip to content

Commit

Permalink
Clarify register/connection order. Closes #2558
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Aug 12, 2015
1 parent d575c32 commit c8acd09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions API.md
Expand Up @@ -1368,6 +1368,11 @@ Registers a plugin where:
- `err` - an error returned from the registration function. Note that exceptions thrown by the
registration function are not handled by the framework.

Note that plugin registration are recorded on each of the available connections. When plugins
express a dependency on other plugins, both have to be loaded into the same connections for the
dependency requirement to be fulfilled. It is recommended that plugin registration happen after
all the server connections are created via `server.connection()`.

```js
server.register({
register: require('plugin_name'),
Expand Down

0 comments on commit c8acd09

Please sign in to comment.