Maintain application metadata in beacon connection
This commit is contained in:
parent
dc69fdee46
commit
e82b10da77
6 changed files with 88 additions and 21 deletions
|
|
@ -53,6 +53,8 @@ pub enum Event {
|
|||
at: SystemTime,
|
||||
name: String,
|
||||
version: Version,
|
||||
theme: Option<theme::Palette>,
|
||||
can_time_travel: bool,
|
||||
},
|
||||
Disconnected {
|
||||
at: SystemTime,
|
||||
|
|
@ -161,6 +163,8 @@ pub fn run() -> impl Stream<Item = Event> {
|
|||
at,
|
||||
name,
|
||||
version,
|
||||
theme,
|
||||
can_time_travel,
|
||||
} => {
|
||||
let _ = output
|
||||
.send(Event::Connected {
|
||||
|
|
@ -170,6 +174,8 @@ pub fn run() -> impl Stream<Item = Event> {
|
|||
at,
|
||||
name,
|
||||
version,
|
||||
theme,
|
||||
can_time_travel,
|
||||
})
|
||||
.await;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue