gio-echo: explicitly close the stream

Not doing so means we rudely disconnect from the socket without clong out our
websocket stream
pull/114/head
Carlos Martín Nieto 2 years ago
parent 7297d5ce45
commit 69d2f08108
  1. 2
      examples/gio-echo.rs

@ -15,6 +15,8 @@ async fn run() -> Result<(), Box<dyn std::error::Error>> {
println!("Received: {:?}", msg);
ws_stream.close(None).await.expect("error sending close");
Ok(())
}

Loading…
Cancel
Save