Testing recv

This commit is contained in:
2026-07-26 04:48:04 +02:00
parent 7df1902a69
commit 785bcd9399
2 changed files with 24 additions and 1 deletions
+7
View File
@@ -169,6 +169,13 @@ impl TerminalServer {
.await
}
pub async fn log_raw(self: &Arc<Self>, log: EventLog) -> tokio::io::Result<()> {
self.logs.lock().await.push(log.clone());
self.broadcast(pulse_wire::terminal::TerminalServerMessage::AddLog(log))
.await
}
pub async fn info(self: &Arc<Self>, name: &str, message: &str) -> tokio::io::Result<()> {
self.log(LogKind::Info, name, message).await
}