mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:23:28 +00:00
Improved callback for EUD connections in websocket
This commit is contained in:
@@ -101,10 +101,10 @@ impl WsServer {
|
|||||||
// Handle event callbacks with valid Context
|
// Handle event callbacks with valid Context
|
||||||
match event_rx.try_recv() {
|
match event_rx.try_recv() {
|
||||||
Ok(WsEvent::FirstClientConnected) => {
|
Ok(WsEvent::FirstClientConnected) => {
|
||||||
let _ = ctx.callback_null("WEBSOCKET", "Client connected");
|
let _ = ctx.callback_null("WEBSOCKET", "EUD connected");
|
||||||
}
|
}
|
||||||
Ok(WsEvent::LastClientDisconnected) => {
|
Ok(WsEvent::LastClientDisconnected) => {
|
||||||
let _ = ctx.callback_null("WEBSOCKET WARNING", "Client disconnected");
|
let _ = ctx.callback_null("WEBSOCKET WARNING", "EUD disconnected");
|
||||||
}
|
}
|
||||||
Err(_) => {}
|
Err(_) => {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user