The edge recycles long-lived sockets
A proxy in front of the service closes tunneled WebSockets periodically and says so in the close code. The agent redials in about a second and nothing is lost. A handful of these a day is the system working rather than failing.