Fix issues #48 - Can not connect to Websocket

Closes #48
Oh because this make the process stop when its undefined.