Hi, there is no explicit notice that the Server is down, as the library just keeps trying to reconnect.
Hence, you should check for the CONNECTING state.
The logic of the state transitions is...