Rancher socket connection dies

We are using the rancher websockets to monitor events on the rancher system - works like a charm, except that every now and then the connection seems to die.

Is there a timeout period ? I notice that there is a ping event - should I be responding to this as a sort of keepalive ?

thanks

How often of a “now and then” are we talking about?

There is not a timeout on our side; Pings are one-way, you don’t need to reply, they’re just to keep the connection active and show the client that it’s still connected.

My first guess would be that you have a proxy, SSL termination, or other device in the network path that has a timeout or a max connection time limit.