Background: I am working on learning about websockets using ASP.Net. I had a application in which I used a heartbeat to ensure that the client was still attached. In my application I would send the heartbeat every few seconds. During my reading I discovered that I could use a ping pong to achieve something similar. So after some investigation I discovered that I could configure the ping as part of IIS. During my testing though I noticed that the ping is only sent if the connection is idle not every few seconds like my heartbeat was.
Question: Is there a way to have IIS send the every few seconds rather the only when the connection is idle? Or would my only option be to implement custom ping/pong logic?