send_outgoing_messages

Function send_outgoing_messages 

Source
pub fn send_outgoing_messages(
    outgoing_messages: &[OutgoingMessage],
) -> FFIResult<()>
Expand description

Batch send OutgoingMessages back to the controller module

It is important to understand that this doesn’t send the message directly to a behavior instance for processing. It is sent to the controller module who then decides what to do with it.

For performance reasons it is recommended to always batch as many outgoing messages together as that will reduce calls over FFI, which are expensive