What are you doing when it disconnects?
Opening gifs in main? In a private message?
Uploading images In main? In a private message?
Just typing in main? In DM?
Just watching chat?
I find I disconnect if I open any other applications, such as the gallery application when I want to upload a photo.
So far the best success I've had circumventing this inconvenience is to type of word or letter in the text box, then open gallery and upload the photo. If there is text in the text box when you upload a photo it won't send automatically once it's finished processing, but it will hold the photo until you tell it to send. Inevitably while it is processing to upload chat will disconnect and reconnect. so I wait for that to happen. Once it's reconnected, I can then send the image that is processed and waiting to be sent because there is text in the text box.
If I navigate away from my browser though and use another application completely, or try to open gallery while a web cam is live, I often get a VPN boot after that. So have to wait 10 or 15 minutes before I can log back into chat.
Some people have said they have better success logging in as a guest rather than a member and if you don't want to whisper, or keep track of friends, then this is probably also an option...