feat: websocket功能 (默认关闭)

This commit is contained in:
dap
2025-07-07 19:49:36 +08:00
parent 579105bbff
commit f9132d8097
7 changed files with 118 additions and 25 deletions

View File

@@ -20,6 +20,8 @@ export interface VbenAdminProAppConfigRaw {
VITE_GLOB_RSA_PUBLIC_KEY: string;
// 是否开启sse 注意从配置文件获取的类型为string
VITE_GLOB_SSE_ENABLE: string;
// 开启websocket 注意从配置文件获取的类型为string
VITE_GLOB_WEBSOCKET_ENABLE: string;
}
export interface ApplicationConfig {
@@ -35,6 +37,8 @@ export interface ApplicationConfig {
rsaPublicKey: string;
// 是否开启sse
sseEnable: boolean;
// 是否开启
websocketEnable: boolean;
}
declare global {