Class RCONPacket

Hierarchy

  • RCONPacket

Constructors

  • new RCONPacket(buf?: BufWrapper<BufWrapperPlugins>): RCONPacket
  • Read or write a packet

    Parameters

    • Optional buf: BufWrapper<BufWrapperPlugins>

      Buffer to create the packet from, can be undefined if you are building a packet

    Returns RCONPacket

Properties

buf: BufWrapper<BufWrapperPlugins>

BufWrapper instance that wraps the buffer for this packet

payload: string

Payload of the packet

Type of the packet

See

https://wiki.vg/RCON#Packets

MAX_CLIENT_PAYLOAD_LENGTH: 1460 = 1460

Maximum client to server packet length

MAX_SERVER_PAYLOAD_LENGTH: 4110 = 4110

Maximum server to client packet length

Methods

  • Write the data to the packet

    Parameters

    • Optional type: RCONPacketType

      Type of the RCONPacket

    • Optional payload: string

      Payload for this packet

    Returns void

Generated using TypeDoc