I need to establish a long running (say 10 minutes) connection between a javascript client and a Web API controller action. The Azure load balancers for Web Apps have a default timeout of 4 minutes and that is not configurable at the moment.
How can I keep the connection by sending tcp keep-alive packets?
Can this be done client-side, server-side or both?
For .NET I can only find this option
ServicePoint.SetTcpKeepAlive
, but it seems to be limited to an HttpWebRequest where the application makes a request as a client.Is it possible to send keep-alive packets from javascript via
XMLHttpRequest
?