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

Added the line break symbols and added a ping message sent every few minutes, but the behaviour is the same.

It’s always after about 10 minutes the connection starts to be unstable.

I’ve had the client running for a long time now, and it does actually eventually receive messages. After running it for about 15 minutes, it finally receives a ton of chat messages all at once (which were meant to be received several minutes ago). So the connection is still alive, just insanely unstable.

I’m wondering if I’m getting such bad routing to the Twitch chat server that I’m riddled with packet loss, but that doesn’t explain why I can read chat just fine directly on the Twitch page, or why Ankhbot is able to receive messages just fine.