fixed bug causing websocket to try to connect to incorrect url