websocket-rs 0.1.4

Designed for https://github.com/euvoor/hawk
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, PartialEq, Clone, Copy)]
pub enum Opcode {
    Text,       // 0x1
    Close,      // 0x8
    Ping,       // 0x9
    Pong,       // 0xA
    Unknown,
}

impl Default for Opcode {
    fn default() -> Self { Opcode::Unknown }
}