/*
|
* @Author: shuishen 1109946754@qq.com
|
* @Date: 2024-09-09 19:13:20
|
* @LastEditors: shuishen 1109946754@qq.com
|
* @LastEditTime: 2024-09-09 19:14:36
|
* @FilePath: \drone-web-manage\src\websocket\util\config.ts
|
* @Description:
|
*
|
* Copyright (c) 2024 by shuishen, All Rights Reserved.
|
*/
|
|
import { getToken } from '@/utils/auth';
|
|
export function getWebsocketUrl() {
|
const token = getToken();
|
// const url = CURRENT_CONFIG.websocketURL
|
const url = `${import.meta.env.VITE_APP_WS_API_URL}/drone-wss/api/v1/ws?x-auth-token=${encodeURI(token)}`;
|
return url;
|
}
|