Fix issues #48 - Can not connect to Websocket

Closes #48
r+