From d7906cf8cec231a83d2f6babbc6909a9bfa6d36b Mon Sep 17 00:00:00 2001 From: Jayex Date: Fri, 7 Jan 2022 03:02:52 +0100 Subject: [PATCH] added reconnect to twitch api --- js/api/twitch.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/api/twitch.js b/js/api/twitch.js index 976f7df..d7c4ed6 100644 --- a/js/api/twitch.js +++ b/js/api/twitch.js @@ -1,5 +1,9 @@ if (twitch_channel_name !== "") { const client = new tmi.client({ + connection: { + reconnect: true, + secure: true, + }, channels: [twitch_channel_name], });