1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Updated API Reference (markdown)

Nick O'Leary 2013-09-09 12:21:34 -07:00
parent f877d648f0
commit cf724e74a8

@ -20,6 +20,9 @@
- RED.server.app - the Express instance serving the editor UI
- RED.server.server - the server instance
### Events
- [RED.events](#server-events)
## Client
### [Nodes](API/Client/Nodes)
@ -106,4 +109,18 @@ After defining a node's constructor, it needs to be registered with this functio
RED.nodes.registerType("inject",InjectNode);
<a name="server-library-register" href="#wiki-server-library-register">#</a> RED.library.<b>register</b>(<i>type</i>)
<a name="server-library-register" href="#wiki-server-library-register">#</a> RED.library.<b>register</b>(<i>type</i>)
***
<a name="server-events" href="#wiki-server-library-register">#</a> RED.<b>events</b>
`RED.events` is an instance of [EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter). It emits the following events:
Event | Description
---------------|------------
nodes-loaded | Fired when all of the node definitions have been loaded
nodes-starting | Fired before the flow nodes are created
nodes-started | Fired once the flow nodes have been created
nodes-stopping | Fired when the flow nodes are about to be stopped
nodes-stopped | Fired once the flow nodes have stopped