check_connected


Description:

[ Version ( since = "0.19.1" ) ]
public bool check_connected () throws Error

Return whether this connection is fully active and connected.

If it is not, raise DISCONNECTED.

This is equivalent to checking whether get_status returns CONNECTED; it is provided because methods on the connection often need to make this check, and return a Error if it fails.

Parameters:

this

the connection

Returns:

true if this connection is connected