mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Add real networked message type
This commit is contained in:
parent
fd22482f06
commit
ab8aa89f2a
2 changed files with 30 additions and 5 deletions
|
|
@ -94,7 +94,17 @@ impl<F: ImfsFetcher> ApiService<F> {
|
|||
// TODO: Transform applied patch sets into subscribe responses
|
||||
let api_messages = messages
|
||||
.into_iter()
|
||||
.map(|_message| SubscribeMessage)
|
||||
.map(|message| {
|
||||
let removed_instances = message.removed;
|
||||
let added_instances = HashMap::new(); // TODO
|
||||
let updated_instances = Vec::new(); // TODO
|
||||
|
||||
SubscribeMessage {
|
||||
removed_instances,
|
||||
added_instances,
|
||||
updated_instances,
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
|
||||
json_ok(SubscribeResponse {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue