feat: add server state and signaling readiness

This commit is contained in:
2026-08-16 18:26:37 +02:00
parent 71105d9783
commit 44051b0ed8
4 changed files with 62 additions and 5 deletions

View File

@@ -26,6 +26,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
buffer = String::from("A").repeat(1024 * 1024 * 2);
}
if buffer == "/ready\n" {
buffer.clear();
client.signal_readiness().await;
continue;
}
client.send_text_message(buffer.clone()).await;
buffer.clear();
}