Fixed pinging

This commit is contained in:
2026-02-18 22:55:58 +01:00
parent 5edbe8c8a1
commit a14a989691
3 changed files with 6 additions and 14 deletions
+2 -1
View File
@@ -25,9 +25,10 @@ async fn main() -> session_rs::Result<()> {
// Send a few messages
for i in 0..5 {
println!("sending");
let msg = serde_json::json!({ "hello": i });
session.send(&msg).await?;
tokio::time::sleep(std::time::Duration::from_secs(1000)).await;
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
}
session.close().await?;