node-xmpp/node-xmpp-server — pull request #51 by krnekit (2014-06-10 08:02:20+00:00)
Title: Close stream with error if 'to' not specified

If stream has empty or absent 'to', the server crashes. This is due to proceeding to authenticate and trying to create JID object with empty domain, which throws 'Argument error'.
This stream attribute is mandatory, so we can close it with corresponding error. See more: http://xmpp.org/rfcs/rfc6120.html#streams-attr-to