Does async_tungstenite detect connection loss?

hi, when opening a client socket and disconnecting the machine from the internet, nothing really happens. Whats the usual procedure to detect connection drops client side? Does the library have methods for it?