Reattached document service.

This commit is contained in:
2025-04-22 08:31:25 -04:00
parent 0ab0b59f4c
commit 38af08eb14
3 changed files with 30 additions and 2 deletions

View File

@ -42,4 +42,12 @@ impl MoreThanText {
let reply = rx.recv().unwrap();
reply.get_data("sess_id").unwrap().to_uuid().unwrap()
}
pub fn get_document(&self, sess_id: Uuid) -> String {
let mut msg = Message::new(MsgType::DocumentRequest);
msg.add_data("sess_id", sess_id);
let rx = self.client_channel.send(msg);
let reply = rx.recv().unwrap();
reply.get_data("doc").unwrap().to_string()
}
}