public void addChatServiceListener(ChatListener listener){
  listeners.add(listener);
}

public void addChatServiceListener ( ChatListener listener ) { listeners . add ( listener ) ; }
adds a chatservicelistener to the chat service . please remove the listener when you no longer need the chatservice to avoid memory leaks .
