title: how to connect custom onmessage handler with Strophe
body: <p>I am working with Strophe on a facebook chat system, so far, the login and sending messages works.</p>
  
  <p>So far I can see in the Google Chrome Inspector console that the incoming messages are registered, however, I currently dont have any incoming message handlers registered.</p>
  
  <p>I've tried</p>
  
  <pre><code>conn.addHandler(AjaxIM.client.incoming, null, "chat");
  
  -- and --
  
  conn.addHandler(AjaxIM.client.incoming, null, "message", null, null, null);
  </code></pre>
  
  <p>But that didn't seem to do anything.</p>
  
  <p>Any help is greatly appreciated!</p>