Skip to content

Event: raw

karashiiro edited this page Aug 16, 2019 · 1 revision

Fires on every packet receive or send. All events extend this one.

Structure Overview

{
    type: string,
    connection: string,
    operation: string,
    epoch: number,
    packetSize: number,
    segmentType: number,
    data: Uint8Array
}

Optional Property Overview

The following properties only exist when segmentType is equal to 3:

{
    superType: string,
    sourceActorSessionID: number,
    targetActorSessionID: number,
    serverID: number,
    timestamp: number
}

Structure properties

  • type - The event type. By default this is set to "unknown", but is overwritten if the packet is able to be identified.
  • connection - A string containing the source IP and destination IP, with sockets. This should only ever contain your own IP and the server IP.
  • operation - "send" for outbound packets, "receive" for inbound packets.
  • epoch - An epoch. Not very different from timestamp, only included for full coverage.
  • packetSize - The size of the packet, in bytes.
  • segmentType - The segment type of the packet. This is equal to 2 for chat packets, and is equal to 3 for zone packets.
  • data - The raw data of the packet, beginning from the end of the IPC header. For events of type unknown, this also contains the segment header.

  • superType - A catch-all event that is fired for similar types of events. This is only used in cases such as message, in which all message channels use identical or similar object structures.
  • sourceActorSessionID - The session ID of the packet source. This is lightly obfuscated for privacy.
  • targetActorSessionID - The session ID of the target actor (usually you, or the server). This is lightly obfuscated for privacy.
  • serverID - The ID of the server.
  • timestamp - The timestamp of the packet send.