very very unfinished websocket
This commit is contained in:
parent
ce543e7ee1
commit
f07333e358
8 changed files with 168 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[serde(tag = "t", content = "d", rename_all = "SCREAMING_SNAKE_CASE")]
|
||||
pub enum Dispatch {
|
||||
MessageCreate
|
||||
|
|
|
@ -13,6 +13,12 @@ pub enum Payload {
|
|||
},
|
||||
Hello,
|
||||
Identify {
|
||||
token: String,
|
||||
host: String,
|
||||
date: String,
|
||||
server: String,
|
||||
signature: String,
|
||||
},
|
||||
Error {
|
||||
message: String,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue