Websocket connection times out after 10-15 minutes despite replying to PINGs

Is there even anything I can do to try and fix that? Or am I stuck here with a finger up my own praying that, at some point, it fixes itself?