public void connect(){
  if (listeners.isEmpty()) {
    AirMapLog.i("TrafficService","No listeners, not connecting");
    return;
  }
  AirMapLog.i("TrafficService","Connecting to Traffic Service");
  if (connectionState == ConnectionState.Connecting) {
    return;
  }
  connectionState=ConnectionState.Connecting;
  allTraffic.clear();
  AirMap.getCurrentFlight(currentFlightCallback);
}

public void connect ( ) { if ( listeners . isEmpty ( ) ) { AirMapLog . i ( "TrafficService" , "No listeners, not connecting" ) ; return ; } AirMapLog . i ( "TrafficService" , "Connecting to Traffic Service" ) ; if ( connectionState == ConnectionState . Connecting ) { return ; } connectionState = ConnectionState . Connecting ; allTraffic . clear ( ) ; AirMap . getCurrentFlight ( currentFlightCallback ) ; }
connect to the server to receive updates
