Parse ws spec ping messages

This commit is contained in:
Yannick Funk
2021-08-23 14:22:23 +02:00
parent 31ebf19cf9
commit ceb35e58ce
2 changed files with 9 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ pub enum ServerboundNotification {
Authenticate(AuthType),
BeginTyping { channel: String },
EndTyping { channel: String },
Ping { data: Vec<u8> }
}
#[derive(Serialize, Deserialize, Debug, Clone)]
@@ -180,6 +181,9 @@ pub enum ClientboundNotification {
id: String,
update: Value,
},
Pong {
data: Vec<u8>
}
}
impl ClientboundNotification {