dispatch_event

Function dispatch_event 

async fn dispatch_event(
    event: ClientEvent<'_>,
    incoming_msg: Option<Message>,
    msg_tx: &Sender<Message>,
    pending: &mut Pending,
)