mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
[overlays] Fix: Transmit event-id as string
in order to compensate for i.e. CRDB very large IDs being truncated in JSON transmit Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
c4be936c63
commit
014df155ae
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
/**
|
/**
|
||||||
* SocketMessage received for every event and passed to the new `(eventObj) => { ... }` handlers
|
* SocketMessage received for every event and passed to the new `(eventObj) => { ... }` handlers
|
||||||
* @typedef {Object} SocketMessage
|
* @typedef {Object} SocketMessage
|
||||||
* @prop {Number} [event_id] - UID of the event used to re-trigger an event
|
* @prop {String} [event_id] - UID of the event used to re-trigger an event
|
||||||
* @prop {Boolean} [is_live] - Whether the event was sent through a replay (false) or occurred live (true)
|
* @prop {Boolean} [is_live] - Whether the event was sent through a replay (false) or occurred live (true)
|
||||||
* @prop {String} [reason] - Reason of this message (one of `bulk-replay`, `live-event`, `single-replay`)
|
* @prop {String} [reason] - Reason of this message (one of `bulk-replay`, `live-event`, `single-replay`)
|
||||||
* @prop {String} [time] - RFC3339 timestamp of the event
|
* @prop {String} [time] - RFC3339 timestamp of the event
|
||||||
|
|
|
@ -42,7 +42,7 @@ type (
|
||||||
|
|
||||||
// socketMessage represents the message overlay sockets will receive
|
// socketMessage represents the message overlay sockets will receive
|
||||||
socketMessage struct {
|
socketMessage struct {
|
||||||
EventID uint64 `json:"event_id"`
|
EventID uint64 `json:"event_id,string"`
|
||||||
IsLive bool `json:"is_live"`
|
IsLive bool `json:"is_live"`
|
||||||
Reason sendReason `json:"reason"`
|
Reason sendReason `json:"reason"`
|
||||||
Time time.Time `json:"time"`
|
Time time.Time `json:"time"`
|
||||||
|
|
Loading…
Reference in a new issue