diff --git a/server/admin/app/ra/routes/socketio.tsx b/server/admin/app/ra/routes/socketio.tsx index 3e980c82c9d..77a1f266c1c 100644 --- a/server/admin/app/ra/routes/socketio.tsx +++ b/server/admin/app/ra/routes/socketio.tsx @@ -6,12 +6,17 @@ import { Card, CardContent } from '@mui/material'; * SocketIO 管理 */ export const SocketIOAdmin: React.FC = React.memo(() => { + const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws'; + return ( - 服务器URL为: ws://{window.location.host} + 服务器URL为:{' '} + + {protocol}://{window.location.host} + 账号密码为Tailchat后台的账号密码