[Fix #206] Use secure websocket
Merge pull request #221 from k88hudson/206

[Fix #206] Use secure websocket
Use ws for http, wss for https