xavi-js/xavi-client — pull request #23 by lipsmack (2014-03-05 16:20:51+00:00)
Title: Ensure that WebSocket URL is well formed

Sets sane defaults for port option and prevents spurious slashes being inserted before the resource path.

Before: `wss://localhost:443//test`
After: `wss://localhost/test`