I found an issue in node-xmpp. As we've discussed in the past, I think it is better to decouple the Connection from the Socket, so that we can use other types of "socket" to support connection : namely websockets, but also stuff like Bosh for example (if we can ever port node-xmpp to th browser)...
Right now, it assumes that when the socket triggers the 'end' event, it still exist as an object... which doesn't seem to the case for websockets.
Let me know if that makes any sense!
only ending the socket if it still exists
Forget this please... I find a more elegant solution :) It would be nice that the API on the socket that is being used by the connection is documented though!
Added export for abstract authentication mechanism. Fixes #47