public void dispose(){
  listeners.clear();
  if (logger != null) {
    logger.delete();
  }
  listeners=null;
  logger=null;
  connector=null;
}

public void dispose ( ) { listeners . clear ( ) ; if ( logger != null ) { logger . delete ( ) ; } listeners = null ; logger = null ; connector = null ; }
disposes all resources the chatservice is using .
