Added Timeout Duration to NoTwitch.TwitchConnection when calling EventSub_Socket

This commit is contained in:
Eroax 2024-02-09 02:05:55 -07:00
parent 54dbcb7724
commit 4a40b48ab5

View file

@ -98,7 +98,7 @@ func send_chat(msg : String, channel : String = ""):
## Sets up an EventSub connection to allow subscribing to EventSub events. Ex. Alerts, Channel Point Redemptions etc.
func setup_eventsub_connection(events : Array[EventSub_Subscription] = [], timeout_duration : int = 20):
eventsub_socket = eventsub_socket_class.new(self)
eventsub_socket = eventsub_socket_class.new(self, timeout_duration)
var ret = await eventsub_socket.connect_to_eventsub(events)
return ret