title: join chat room and send/receive messages
body: <p>I can not find manual <em>How join to chat room and send/receive messages ?</em></p>
  
  <p>I use Strophe + openFire.</p>
  
  <p>How I send message:</p>
  
  <pre><code>var o = {from : 'test2@xmpp.local/5c5d4956', to:'1@conference.xmpp.local', type : 'groupchat', xmlns : Strophe.NS.MUC};
  var m = $msg(o);
  m.c('body', null, 'body text'); 
  connection.send(m.tree());
  </code></pre>
  
  <p>How I receive:</p>
  
  <pre><code>&lt;body xmlns='http://jabber.org/protocol/httpbind'&gt;
  &lt;message xmlns="jabber:client" xmlns="http://jabber.org/protocol/muc" from="1@conference.xmpp.local" to="test2@xmpp.local/77ce8c0e" type="error"&gt;            &lt;body&gt;dfsdfsdfsd&lt;/body&gt;&lt;error xmlns="" code="406" type="modify"&gt;&lt;not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/&gt;&lt;/error&gt;&lt;/message&gt;&lt;/body&gt;
  </code></pre>