fixed the websocket bug where server had to be on localhost to work