pub fn publish_event(payload: &str) -> Result<(), ()>Expand description
Publish an event on this plugin’s registered namespace.
payload should be a JSON string; it is delivered to every IPC client subscribed to
this plugin’s namespace, wrapped as { "plugin": <ns>, "payload": <payload> }.
Returns Ok(()) on success, or Err(()) if this plugin has not registered a namespace.