[WIP] Client connections
This commit is contained in:
parent
5716ed1aa2
commit
84bdcab0d1
4 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue