Skip to content

EventData Parts #1361

@valzargaming

Description

@valzargaming

Payloads consist of four parts:

  • op: The gateway opcode, which indicates the payload type.
  • d: The event data as JSON
  • s: The sequence number of event used for resuming sessions and heartbeating
  • t: Event name

The library currently uses t to determine what kind of event is fired, however it still serves the event data as part of a generic object. The goal of this issue is to create EventData Parts to better indicate what kind of data is available.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions