Author Topic: [Bug] Donation html cannot reconnect  (Read 1573 times)

0 Members and 1 Guest are viewing this topic.

Gwahir

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
[Bug] Donation html cannot reconnect
« 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();
}

IanChandler1990

  • Padawan
  • **
  • Posts: 84
  • Karma: +0/-0
    • View Profile
    • Twitch
  • Twitch Name: Ianchandler1990
Re: [Bug] Donation html cannot reconnect
« Reply #1 on: April 24, 2015, 06:17:15 PM »
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 And deepbot.tv/notifications/donationnotification2.htmon 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
« Last Edit: April 24, 2015, 06:29:08 PM by IanChandler1990 »

Gwahir

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: [Bug] Donation html cannot reconnect
« Reply #2 on: April 28, 2015, 07:19:44 AM »
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.