Subject: BOSH: can not detect disconnect when network cable is unplugged
My application uses bosh to connect to server.
When there is no operation on the client, matrix send empty request to server every 60s.
If I disable the network adapter, the OnClose event can be fired before inactivity time.
But if I unplugged the network cable from my computer, the OnClose event is never fired at all even after the inactivity time. Until someone trigger a event to send message to server actively. If there is no message sent to server, the OnClose is never fired, and the client is always online.
Is there anyway to let matrix dectect network disconnection when the network cable is unplugged.
When there is no operation on the client, matrix send empty request to server every 60s.
If I disable the network adapter, the OnClose event can be fired before inactivity time.
But if I unplugged the network cable from my computer, the OnClose event is never fired at all even after the inactivity time. Until someone trigger a event to send message to server actively. If there is no message sent to server, the OnClose is never fired, and the client is always online.
Is there anyway to let matrix dectect network disconnection when the network cable is unplugged.