Deep Bot - Twitch Streamer Assistant
Deep Bot => Bug Reports => Topic started by: Gwahir on April 24, 2015, 11:44:29 AM
-
I've come across a bug with deepbot.tv/notifications/donationnotification2.htm where it cannot reconnect to deep bot if the websocket connection is lost. This is because the javascript is missing the reconnect function.
Adding this code fixes it:
function reConnectWebSocket() {
connectSocketServer();
}
-
I've come across a bug with deepbot.tv/notifications/donationnotification2.htm where it cannot reconnect to deep bot if the websocket connection is lost. This is because the javascript is missing the reconnect function.
Adding this code fixes it:
function reConnectWebSocket() {
connectSocketServer();
}
Hi Gwahir,
I have had a look at both the donation and donation 2 page deepbot.tv/notifications/donationnotification.htm (http://deepbot.tv/notifications/donationnotification.htm) And deepbot.tv/notifications/donationnotification2.htm (http://deepbot.tv/notifications/donationnotification2.htm)on that the code is the same and I was able to get my bot to reconnect to the page. Will see if anyone else posts here with the same problem.
Regards,
Ian chandler
-
I should have been more specific. It can reconnect if you refresh the source but it will not automatically reconnect after an interval following a disconnection since the reConnectWebSocket function does not exist. Note line 212 in notification2 and line 59 in notification. Watching the javascript console when it tries to call that function shows an undefined method error.