Skip to content

Commit

Permalink
Merge branch 'doc-signaling-feature'
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhelsing committed Dec 12, 2024
2 parents 644e74e + d6c6ff5 commit 3a3f5c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bevy_matchbox/examples/hello_host.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
//! Runs both signaling with server/client topology and runs the host in the same process
//!
//! Sends messages periodically to all connected clients.
//!
//! Note: When building a signaling server make sure you depend on
//! `bevy_matchbox` with the `signaling` feature enabled.
//!
//! ```toml
//! bevy_matchbox = { version = "0.x", features = ["signaling"] }
//! ```
use bevy::{
app::ScheduleRunnerPlugin, log::LogPlugin, prelude::*, time::common_conditions::on_timer,
Expand Down
7 changes: 7 additions & 0 deletions bevy_matchbox/examples/hello_signaling.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
//! Runs a signaling server with server/client topology as a headless bevy
//! application.
//!
//! Note: When building a signaling server make sure you depend on
//! `bevy_matchbox` with the `signaling` feature enabled.
//!
//! ```toml
//! bevy_matchbox = { version = "0.x", features = ["signaling"] }
//! ```
use bevy::{app::ScheduleRunnerPlugin, log::LogPlugin, prelude::*, utils::Duration};
use bevy_matchbox::{matchbox_signaling::SignalingServer, prelude::*};
Expand Down

0 comments on commit 3a3f5c1

Please sign in to comment.