Why does my Websocket connection keep getting closed?

When using websockets I am noticing that my connection sometimes gets closed. Why is this happening?

1 Like

Helius automatically terminates websocket connections that are inactive for more than 5 minutes. We recommend implementing automatic reconnect logic to handle disconnections.