naia-shared 0.24.0

Common functionality shared between naia-server & naia-client crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use naia_serde::SerdeInternal;

#[derive(SerdeInternal, Debug, PartialEq, Eq, Clone)]
pub enum HandshakeHeader {
    // An initial handshake message sent by the Client to the Server
    ClientIdentifyRequest,
    // The Server's response to the Client's initial handshake message
    ServerIdentifyResponse,
    // The handshake message sent by the Client to initiate a connection
    ClientConnectRequest,
    // The handshake message sent by the Server, indicating that the
    // connection has been established
    ServerConnectResponse,
    // Used to request a graceful Client disconnect from the Server
    Disconnect,
}