Skip to main content

start_turn

Function start_turn 

Source
pub fn start_turn<S: Read + Write>(
    ws: &mut WebSocket<S>,
    thread_id: &str,
    text: &str,
) -> Result<WakeOutcome, WakeError>
Expand description

Runs the handshake and one turn/start (with one resume retry) on an open WebSocket. Generic over the stream so tests use a fake server.