Setup executable JSON ws message

This commit is contained in:
2024-12-23 16:59:28 -06:00
parent 81c509b0b0
commit e5e2a013f5
2 changed files with 14 additions and 3 deletions

View File

@@ -169,4 +169,12 @@ pub enum OutgoingMessage {
TokenAlert { token: u64 },
// A message describing the current session state
State { session: Session },
Executables { executables: Vec<ExecutableJson> },
}
#[derive(Debug, Serialize)]
pub struct ExecutableJson {
pub id: String,
pub size: usize,
pub filename: String,
}