private void onConnect(){
  connectionState=ConnectionState.Connected;
  checkForUpdatedFlight=true;
  subscribe(String.format(trafficAlertChannel,flightId));
  subscribe(String.format(situationalAwarenessChannel,flightId));
}

private void onConnect ( ) { connectionState = ConnectionState . Connected ; checkForUpdatedFlight = true ; subscribe ( String . format ( trafficAlertChannel , flightId ) ) ; subscribe ( String . format ( situationalAwarenessChannel , flightId ) ) ; }
when connected , subscribe to the necessary channels to get properly notified
