Working with a WebSocket server using Microsoft.Web.WebSockets.WebSocketHandler where I'm keeping the connected clients in a WebSocketCollection. When the client loses its network connection, at the server the OnClose and OnError methods are not called. Additionally, looking at the specific client in the collection shows that its WebSocket.State is still described as connected. This is on IIS8.
Short of manually sending the client a message and looking for a response, is there another way to determine that the client has dropped of the network? Is there some IIS configuration I'm missing? Thanks.