diff --git a/examples/gio-echo.rs b/examples/gio-echo.rs index b5c0370..95e17db 100644 --- a/examples/gio-echo.rs +++ b/examples/gio-echo.rs @@ -15,6 +15,8 @@ async fn run() -> Result<(), Box> { println!("Received: {:?}", msg); + ws_stream.close(None).await.expect("error sending close"); + Ok(()) }