added get cmd to handle_mize_message function

- and _commit field, that automatically imcrements
This commit is contained in:
Sebastian Moser
2022-10-05 14:58:04 +02:00
parent e9d93442df
commit 0d81d6d4f6
3 changed files with 79 additions and 2 deletions

View File

@@ -148,6 +148,7 @@ async fn handle_socket_connection(
// Reading and broadcasting messages
while let Some(result) = socket_rx.next().await {
let msg = result.expect("Error when gettin message from WebSocket");
let t = msg.clone().into_bytes();
let clients = clients_clone.lock().await;
for client in &clients[..] {
client.tx.send(Ok(msg.clone()));