1use crate::WsClientError;
23/// The event type of Websocket client
4#[derive(Debug)]
5pub enum WsEvent {
6/// When a error occurred
7Error(WsClientError),
8/// When the server push a new message
9Push {
10/// Command code
11command_code: u8,
12/// Message body
13body: Vec<u8>,
14 },
15}