public boolean isListening ( ) throws Exception { try { JSONObject resp = new JSONObject ( Get . get ( API_BASE_URL + ":" + API_PORT , Constants . REQUEST_HEARTBEAT , "" ) ) ; return true ; } catch ( Exception e ) { return false ; } }
Returns true if there is RoboRemoteServer currently listening