WIP
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user