In order to receive events from the WebSocket server, you must first subscribe to them.
.on() method, this is handled automatically!All events are sent from the server in stringified JSON format.
Event payloads follow the following base schema:
{
  "timeStamp": Date, // ISO 8601 DateTime
  "event": {
    "source": string,
    "type": string
  },
  "data": {
    // Data for the respective event
  }
}
{
  "timeStamp": "2022-01-30T21:32:04.4588947-05:00",
  "event": {
    "source": "Twitch",
    "type": "ChatMessage"
  },
  "data": {
    // Twitch Chat Message Data
  }
}
Twitch, YouTube, OBS, etc.ChatMessage, StreamStart, SceneChanged, etc.