Don't hardcode websocket endpoint to localhost