Created Design: Runtime Events (markdown)

Nick O'Leary 2017-01-17 15:08:52 +00:00
parent d4c8b3f97f
commit 703b3bd17f
1 changed files with 11 additions and 0 deletions

11
Design:-Runtime-Events.md Normal file

@ -0,0 +1,11 @@
All events are emitted by `runtime.events`.
| Event | Args | Description |
|--------------------------|-------------------------|-------------|
| `node-status` | `{id: node.id, status:statusMessage }`| A node status event to display in the editor |
| `runtime-event` | `{id:"runtime-unsupported-version",type:"error",text:"message.id"}` | A runtime event that should be displayed in the editor as a notification
| `node-examples-dir` | `{name:pkg.name,path:examplesDir}`| A directory of example flows has been discovered
| `node-module-uninstalled`| `module` | A module has been removed from the runtime |
| `node-icon-dir` | `path` | A directory of node icons has been discovered |
| `type-registered` | `type` | A new node type has been registered |