{
  "version": 3,
  "sources": ["../../../src/apiCalls/websocket/getWebsocketUrl.ts"],
  "sourcesContent": ["import axios from 'axios';\n\nexport async function getWebsocketUrl(apiAddress: string) {\n  try {\n    const { data } = await axios.get<{ url: string }>(\n      `${apiAddress}/websocket/config`\n    );\n    return `wss://${data.url}`;\n  } catch (err) {\n    console.error(err);\n    throw new Error('Can not get websocket url');\n  }\n}\n"],
  "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAkB,oBAElB,eAAsBF,EAAgBG,EAAoB,CACxD,GAAI,CACF,KAAM,CAAE,KAAAC,CAAK,EAAI,MAAM,EAAAC,QAAM,IAC3B,GAAGF,CAAU,mBACf,EACA,MAAO,SAASC,EAAK,GAAG,EAC1B,OAASE,EAAK,CACZ,cAAQ,MAAMA,CAAG,EACX,IAAI,MAAM,2BAA2B,CAC7C,CACF",
  "names": ["getWebsocketUrl_exports", "__export", "getWebsocketUrl", "__toCommonJS", "import_axios", "apiAddress", "data", "axios", "err"]
}
