[IRC] Twitch Chatbot Disconnection Issues

I’ve had some people have the problem of random disconnects with my chatclient. It only happened when the connection wasn’t active at all (no incoming/outgoing messages for a few minutes), so only in rather inactive chats. I’m guessing their router/internet somehow decided the connection wasn’t needed anymore. One guy switched their router and it didn’t happen anymore. I don’t know if that is your problem as well, but I’m now sending a PING to the server every 45 seconds (if I didn’t send or receive any other messages in that time of course) and that seemed to solve the disconnection issues for a few people.