This is TCP: when you do not send or receive, how can you find out whether it is there or not?
If you kill a peer process or reboot it, this peer network stack will usually actively close TCP, so you will also immediately discover a lost WebSocket discovery. But if you just pull the plug onto a peer-to-peer network (network or network) or something else serious, TCP is not actively shutting down.
In the context of WebSocket, you can ping / pong at the WebSocket level (I donβt know if IIS supports this .. WS ping / pong heartbeating), or you can do beats at the application level by sending small WS messages.
oberstet
source share