IM chat based on xmpp protocol