This commit is contained in:
2026-08-31 23:13:15 +05:30
parent c61d301e19
commit 0c3b9cce91
11 changed files with 571 additions and 164 deletions
+10
View File
@@ -0,0 +1,10 @@
use hd_bus::{TcpEventBus, bus::EventData, error::HError};
fn main() -> Result<(), HError> {
let server = TcpEventBus::new();
server.publish(EventData::new(1, "Hello"))?;
server.publish(EventData::new(1, "World"))?;
let addr = "0.0.0.0:21368";
server.start(addr)
}