isConnected()
Method. Indicates whether the session currently has a host connection.
public boolean isConnected()