[Solved] Connection with Twitch chat via Websocket gets unstable within 10 minutes

I had a user with the same issue, where the connection to chat would be cut after some time of inactivity, although not over websocket, but a raw TCP socket instead. I also solved it by sending a PING in a short interval, depending on the other activity on the connection.