Switched WebSocket start motor to allow callbacks when client connects

This commit is contained in:
Valmo Trindade
2025-05-16 03:33:08 -03:00
parent 319ea9b32a
commit c1b00cb050
3 changed files with 143 additions and 80 deletions

View File

@@ -31,10 +31,10 @@ pub fn init() -> Extension {
log4rs::init_config(config).unwrap();
websocket::start();
Extension::build()
.group("websocket", Group::new()
.command("start", websocket::start)
.command("stop", websocket::stop)
.command("message", websocket::message)
.command("location", websocket::location)
)