Emit a simple string notification to topic "custom"
(plugin)
| 12 | |
| 13 | @plugin.method("emit") |
| 14 | def emit(plugin): |
| 15 | """Emit a simple string notification to topic "custom" |
| 16 | """ |
| 17 | plugin.notify("custom", {'message': "Hello world"}) |
| 18 | |
| 19 | |
| 20 | @plugin.method("faulty-emit") |