pub fn check_plugin_msg(plugin: &str, msg: &Value) -> Result<(), String>Expand description
A plugin channel message (crate::ClientMsg::Plugin / crate::ServerMsg::Plugin):
plugin ids are plugin ids ([a-z0-9-]), the message any JSON up to
MAX_PLUGIN_MSG_BYTES.