gottagofaster236 / Twitch-Channel-Points-Miner

A simple script that will watch a stream for you and get the channel points
GNU General Public License v3.0
143 stars 45 forks source link

"Reconnecting to PubSub server" does not work #36

Open CullenStClair opened 3 years ago

CullenStClair commented 3 years ago

If I have the script running and then lose internet access (connected to the network but no internet access), after a short while the message "Reconnecting to Twitch PubSub Server in 30 seconds" appears, but the reconnection is never made. I am required to close the terminal and start a new instance of it. Can this be fixed?

Tkd-Alex commented 3 years ago

Please check in my fork if the problems still occurs. I've attempt to handle the reconnection by recording the last ping and pong message.

https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/blob/9f7ff0b37ffdb23648867ab59850b872dc54738a/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py#L179-L186

https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/blob/9f7ff0b37ffdb23648867ab59850b872dc54738a/TwitchChannelPointsMiner/classes/WebSocketsPool.py#L91-L95