Function hdk::p2p::emit_signal
source · [−]pub fn emit_signal<I>(input: I) -> ExternResult<()> where
I: Serialize + Debug,
Expand description
Emit an app-defined Signal.
Only clients who have subscribed to signals from this Cell with the proper filters will receive it.
TODO: we could consider adding a (optional?) “type” parameter, so that statically typed languages can more easily get a hint of what type to deserialize to. This of course requires a corresponding change to the Signal type.