Skip to content

Commit 612b9f5

Browse files
feat: add web and chat commands
1 parent 629bb3b commit 612b9f5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/types.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ pub enum ChatCommand {
275275
GetChatsHistory,
276276
GetRegisteredClients,
277277
SendMessage(Message),
278+
RegisterToServer(NodeId),
278279
}
279280

280281
#[derive(Debug, Clone)]
@@ -333,6 +334,8 @@ pub enum WebCommand {
333334
AddMediaFileFromPath(String),
334335
RemoveTextFile(Uuid),
335336
RemoveMediaFile(Uuid),
337+
QueryTextFilesList,
338+
GetTextFilesList,
336339
}
337340

338341
#[derive(Debug, Clone)]
@@ -398,6 +401,10 @@ pub enum WebEvent {
398401
notification_from: NodeId,
399402
from: NodeId,
400403
}, // requester_id, server_id
404+
FilesLists {
405+
notification_from: NodeId,
406+
files_map: HashMap<NodeId, Vec<String>>,
407+
}, // browser_id, files_lists
401408
BadUuid {
402409
notification_from: NodeId,
403410
from: NodeId,

0 commit comments

Comments
 (0)