Added a feature to send pings to subscribers via HTTP requests

This commit is contained in:
Shiroyasha 2024-06-18 02:07:59 +03:00
parent 81ab2ba724
commit 4bd9a2ab2e
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
4 changed files with 54 additions and 9 deletions

View file

@ -78,7 +78,7 @@ async fn handle_socket(mut socket: WebSocket, state: AppState) {
},
};
debug!("[WebSocket{}] Raw: {newmsg:?}", owner.name());
debug!("[WebSocket{}] MSG: {:?}, HEX: {}", owner.name(), newmsg, hex::encode(newmsg.to_vec()));
match newmsg {
C2SMessage::Token(token) => {