mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 21:47:02 +00:00
14 lines
348 B
Rust
14 lines
348 B
Rust
use serde::{Serialize, Deserialize};
|
|
|
|
use super::client::Ping;
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
#[serde(tag = "type")]
|
|
pub enum ClientMessage {
|
|
Authenticate { token: String },
|
|
BeginTyping { channel: String },
|
|
EndTyping { channel: String },
|
|
Subscribe { server_id: String },
|
|
Ping { data: Ping, responded: Option<()> },
|
|
}
|