Packet represents a GN Protocol packet. A GN Protocol packet consists of a header followed by optional payload data.

Constructors

Methods

  • Returns void

  • Returns Uint8Array

  • Returns number

  • Returns number

  • Returns string

  • Parameters

    • bytes: Uint8Array

    Returns Packet

Properties

command: Command
destination: Address
header: PacketHeader
length: number
source: Address
subcommand: Subcommand