Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Packet

Hierarchy

Implemented by

Index

Properties

Methods

Properties

propagate

propagate: boolean

Whether or not the packet should keep invoking packet hooks.

If this is set to false by a packet hook, then that packet hook will be the last one which receives the packet. The client's packet hooks are always the last ones to be called, so if this is set to false the packet will not reach the client.

type

The type of packet.

Methods

read

  • Reads data from the reader according to the structure of the packet.

    Parameters

    • reader: Reader

      The reader to read from.

    Returns void

write

  • Writes the packet to the writer according to the packet's structure.

    Parameters

    • writer: Writer

      The writer to write to.

    Returns void

Generated using TypeDoc