Skip to main content

parse_for

Function parse_for 

Source
pub fn parse_for(
    protocol: GameDialect,
    opcode: u16,
    body: &[u8],
    include_raw: bool,
) -> Result<Option<ChatEvent>, Error>
Expand description

Decode communication packets for the selected server protocol.

ยงErrors

Returns an error when a recognized communication packet is malformed.