This commit is contained in:
BIN
src/server/api/.ws.rs.swp
Normal file
BIN
src/server/api/.ws.rs.swp
Normal file
Binary file not shown.
@@ -94,7 +94,7 @@ pub async fn ws_handler(
|
||||
}
|
||||
|
||||
// Send the message to the websocket
|
||||
if let Ok(msg) = serde_json::to_string(&WsMessage::Sync(event)) {
|
||||
if let Ok(msg) = serde_json::to_string(&WsMessage::Sync(*event)) {
|
||||
if let Err(e) = session.text(msg).await {
|
||||
log::error!("Failed to send SyncEvent: {}", e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user