No osrs that’s not the reason. I have figured out what was the reason. Every few hours twitch IRC drops you. It is its job to do that. You just have to reconnect. That’s all. When server drops you or when your connection to server is disconnected, onDisconnect() method is automatically called. I just had to override it and reconnect inside that method. That’s it. Easy. I am back to receiving and sending messages within few milliseconds. And now my application is running for the past 1 and a half day and no issues. I check the logs and it shows that I was dropped by the server automatically at what time.
TL;DR, Server automatically drops you after every few hours. You just need to reconnect.