websocket url no longer hardcoded to localhost