Websocket stream closing after 3 minutes

Hello,

I am using the Websocket to stream in my trade updates so that I can get the most update status.

After about 3 minutes, the socket finishes with code: 1005, and I have a periodic process which checks my stream state and reopens it. However, while waiting for the periodic process to kick in, I have essentially lost time in processing my trade updates.

Is there a way to keep the streams alive for more than 3 minutes?