progrium/wssh — pull request #15 by jefferai (2012-12-28 23:19:10+00:00)
Title: Fix ws/wss parsing so that SSL is actually used when you enter a wss URL

In the current repository, when using a wss:// URL -- even when also manually specifying port 443 -- SSL is not actually used, because in client.py it constructs the URL over again and always uses "ws".

This commit makes the client aware of the given scheme, and adds some sane parsing rules in __init__.py so that it works the way it's expected in all cases -- with/without scheme and with/without port.