pokepurple/addons/twitcher/eventsub/twitch_keepalive_message.gd
Mario Steele c11a4ebbc2 Initial Commit
Initial commit of Code Base.
2025-06-12 14:31:14 -05:00

13 lines
481 B
GDScript

extends RefCounted
## Defines the message that the EventSub WebSocket server sends your client to indicate that the WebSocket connection is healthy.
## See: https://dev.twitch.tv/docs/eventsub/websocket-reference/#keepalive-message
class_name TwitchKeepaliveMessage
var metadata: TwitchEventsub.Metadata;
## Is always empty
var payload: Dictionary = {};
func _init(d: Dictionary) -> void:
metadata = TwitchEventsub.Metadata.new(d.get("metadata", {}));
payload = d["payload"];