[Add] base of message states
This commit is contained in:
parent
9cc494889d
commit
87d4ffab19
6 changed files with 153 additions and 91 deletions
|
|
@ -20,11 +20,9 @@ impl OmikronConnection {
|
|||
.add_data_num(
|
||||
DataTypes::last_ping,
|
||||
Number::from(*self.last_ping.lock().await),
|
||||
)
|
||||
.to_json()
|
||||
.to_string();
|
||||
);
|
||||
|
||||
self.send_message(ping_message).await;
|
||||
self.send_message(&ping_message).await;
|
||||
}
|
||||
|
||||
/// Handles incoming pong and calculates latency
|
||||
|
|
|
|||
Loading…
Reference in a new issue