Typed streaming

This commit is contained in:
2026-08-05 05:01:40 +02:00
parent 72353b1c81
commit 5553774d52
3 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,5 @@
pub mod executor;
pub mod launch;
use futures_util::{SinkExt, StreamExt};
use serde_json::json;
@@ -17,7 +18,6 @@ async fn main() -> anyhow::Result<()> {
let msg = msg?;
if let tokio_tungstenite::tungstenite::Message::Text(text) = msg {
let token: serde_json::Value = serde_json::from_str(&text)?;
// println!("{} ({})", token.name, token.symbol);
println!("{:?}", token);
}
}