Update index.js

Changed default ports to be 443 for SSL and 80 for non-SSL (they were switched). Passed the whole URL to the connection, since it needed both the host and the path. Updated the package by bumping the version number. Updated the README to make ws.connect()'s callback non-optional, since it wasn't optional (at least, not in my experience).
I think the 'connect' event has been fired before your call to `new Connection`.

Can you post your code, it may help settling this :)