Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ anyhow = { workspace = true }
serde = { workspace = true }
uuid = { workspace = true }
tracing = { workspace = true }
futures = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true }
Expand Down
16 changes: 0 additions & 16 deletions crates/client/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,3 @@ pub enum ClientEvent {
signal: crate::ops::VoiceSignalPayload,
},
}

/// Push notifications sent through the optional notification channel.
///
/// These are an addition alongside the existing [`ClientEvent`] poll model.
/// UIs can subscribe to this channel for reactive updates without polling.
#[derive(Debug, Clone)]
pub enum ClientNotification {
/// A `willow_state::Event` was applied to the event-sourced state.
EventApplied(willow_state::Event),
/// A new peer connected to the network.
PeerConnected(String),
/// A peer disconnected from the network.
PeerDisconnected(String),
/// The event-sourced state changed (generic notification).
StateChanged,
}
Loading