title: How to know Typing Status in XMPP openfire using Smack
body: <p>I am developing chat application by using Openfire XMPP server. I can text chat between two user. But i want to know Typing status when some one is typing message. So i created a class :-</p>
  
  <pre><code>public class typingStatus implements ChatStateListener {
  
      @Override
      public void processMessage(Chat arg0, Message arg1) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void stateChanged(Chat arg0, ChatState arg1) {
          // TODO Auto-generated method stub
          System.out.println(arg0.getParticipant() + " is " + arg1.name());
  
      }
  
  }
  </code></pre>
  
  <p>But i am confuse so that How will it work?  I know that i need a packet where i can it in Listener. But i am unable to find that packet.</p>
  
  <p>Please any one suggest, How will it work?</p>
  
  <p>and also what is difference between Smack and asmack?</p>
  
  <p>Thank you!</p>