Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RequestClientActionPacket

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Default value data: object = { uid: null, id: null, time: null, payload: null }
      • id: null
      • payload: null
      • time: null
      • uid: null

    Returns RequestClientActionPacket

Methods

getActionId

  • getActionId(): any
  • Returns any

getActionPayload

  • getActionPayload(): any
  • Returns any

getActionTime

  • getActionTime(): any
  • Returns any

getActionUid

  • getActionUid(): any
  • Returns any

getConstructor

  • getConstructor(): Function
  • Returns Function

getNiceData

  • getNiceData(): any
  • INTERNAL: Returns nice data to show

    Returns any

getNiceString

  • getNiceString(): string
  • Returns a nice string of this packet

    Returns string

getTransformedDataBeforeSend

  • getTransformedDataBeforeSend(): any

serialize

  • serialize(): Uint8Array
  • Serializes this packet into an array buffer

    Returns Uint8Array

Static getHeaderPacketId

  • getHeaderPacketId(): any
  • Returns the number id used for serializing / deserializing

    Returns any

Static getId

  • getId(): string
  • Returns string

Static getMaxSerializedLength

  • getMaxSerializedLength(): number

Static getSchemaUnprocessed

  • getSchemaUnprocessed(): object
  • Returns object

    • additionalProperties: boolean
    • properties: any
    • required: string[]
    • type: string

Static getSerializers

  • getSerializers(): any
  • Returns the schema used for serialization / deserialization

    Returns any

Static hasPayload

  • hasPayload(): boolean
  • Returns if the packet has some payload

    Returns boolean

Static precompileSchema

  • precompileSchema(): object
  • Precompiles the schema

    Returns object

    • validate: any

Static transformDataAfterReceive

  • transformDataAfterReceive(data: any): any
  • Override to transform data after receiving

    Parameters

    • data: any

    Returns any

Static tryParse

  • Tries to parse the given buffer

    Parameters

    • binaryData: any

    Returns BasePacket