Connection disconnects after about 30 seconds

Problem I am facing is not related to mediasoup, but I am wondering if anyone knows about it.

I have mediasoup demo installed on my own server. if I use an average internet connection then it disconnects the call after about 30 seconds. With high speed internet it works fine.
I tried same thing on demo.mediasoup.org and its working fine there. So it must be related to my server. There are no logs except for “ice connection disconnected” .

Any ideas about the solution?

Sounds like you have a websocket timeout. Look into fixing your proxy or similar, or change your socket settings.

Thanks for the suggestion. I will try.

I have noticed its only happening when ping speed is like 30ms or greater. But when its like 3 or 4ms then it works fine. It does not depends on download/upload speed. I have check socket ping timeout settings. they are fine.
Any other idea what to look for?
Thanks.