[WIP] Client connections

This commit is contained in:
Alex Emmet 2026-02-15 12:15:37 +01:00
commit 84bdcab0d1
4 changed files with 7 additions and 7 deletions

View file

@ -109,7 +109,7 @@ impl ClientConnection {
);
return;
}
if !cv.is_type(CommunicationType::pong) {
if !cv.is_type(CommunicationType::pong) && !cv.is_type(CommunicationType::ping) {
log_out!(
self.get_user_id().await,
PrintType::Client,

View file

@ -149,7 +149,7 @@ impl IotaConnection {
pub async fn handle_message(self: Arc<Self>, message: Utf8Bytes) {
let cv = CommunicationValue::from_json(&message);
// Handle ping
if cv.is_type(CommunicationType::ping) {
if cv.is_type(CommunicationType::ping) || cv.is_type(CommunicationType::pong) {
self.handle_ping(cv).await;
return;
}