Event polling

not optimal but its tomorrow
This commit is contained in:
2024-10-15 13:42:48 -04:00
Unverified
parent 3e31066a5f
commit 4ec5e3fb56
5 changed files with 114 additions and 70 deletions

View File

@@ -1,4 +1,4 @@
use realm_server::types::{RealmChatClient, Room};
use realm_server::types::{Message, RealmChatClient, Room};
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct CUser {
@@ -19,5 +19,7 @@ pub struct CServer {
pub port: u16,
pub is_admin: bool,
pub is_owner: bool,
pub rooms: Vec<Room>
pub rooms: Vec<Room>,
pub last_event_index: u32,
pub messages: Vec<Message>,
}