View Source F1Bot.F1Session.LiveTimingHandlers.Packet (f1_bot v0.7.0)

Struct that contains information about every packet received from the live timing API.

Fields:

  • :topic: Websocket feed that the packet came from (e.g. car telemetry, lap times)
  • :data: Topic-specific payload
  • :timestamp: Timestamp of the packet, determined by the API
  • :init: Flag that determines whether this is an initialization packet received immediately after establishing websocket connection. This is useful for topics that contain static information, like driver names and session information.

Link to this section Summary

Link to this section Types

@type t() :: %F1Bot.F1Session.LiveTimingHandlers.Packet{
  data: any(),
  init: boolean(),
  timestamp: DateTime,
  topic: binary()
}