Websockets disconnect after 30 seconds

I have tried to use tyk websockets. My websocket request being disconnected after 30 seconds. But when I connect to the backend service directly (avoid tyk) the connection lasts as long as I want.
Can tyk disconnect old websockets connections? Have someone face this problem?

Are you running Tyk behind a load balancer?

Yes. Tyk is behind load balancer.

Could it be the Load balancer terminating the connection?

Yes. Kubernetes load balancer has 30 seconds limit for all http connections.
Thank you.

1 Like