Use window.location.protocol to choose between ws:// and wss:// shcheme.
Don't break old behaviour
Output a warning to console when using urls whit protocol scheme
redundant regexp, really need to polish my regexp skills...
Merge pull request #109 from depili/master

Use window.location.protocol to choose between ws:// and wss:// shcheme.
Merge remote-tracking branch 'danknox/master'