oa_gateway_owp::session

Function handle_text

Source
async fn handle_text(
    session: &Session,
    state: &mut State,
    subs: &mut HashMap<String, LiveSub>,
    warnings: &mut RouteWarnings,
    out_tx: &Sender<ServerOp>,
    text: &str,
) -> Result<(), Fatal>
Expand description

Dispatches one client text frame.

Unknown or malformed frames stay on the connection. INIT in the wrong state, or a rejected INIT, returns Fatal::Close.

SUB group is accepted by the codec and ignored here.