title: Xmpp Vs Websocket
body: <p>I'm about to develop a website that has near real time chat. I know that it can be implemented using xmpp or websocket protocols. I know also that the xmpp protocol has been developed in 1999 , and I guess it should be mature nowadays .On the other hand , the websocket protocol has been developed in 2011. </p>
  
  <ol>
  <li>What was the need for websocket if xmpp was good in handling real time conversations?</li>
  <li>What are the major differences between the 2 protocols? </li>
  <li>And when should I choose one of them over the other?</li>
  </ol>