oa_gateway_testing::stomp

Function dispatch

Source
async fn dispatch(
    conn_id: u64,
    state: &Mutex<BrokerState>,
    out_tx: &Sender<Frame>,
    frame: Frame,
) -> Result<(), ()>
Expand description

Handles one client frame. Unknown commands get an ERROR. SEND copies headers except destination and assigns message-id.