We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7499a commit 089dbbbCopy full SHA for 089dbbb
server/admin/app/ra/routes/socketio.tsx
@@ -6,12 +6,17 @@ import { Card, CardContent } from '@mui/material';
6
* SocketIO 管理
7
*/
8
export const SocketIOAdmin: React.FC = React.memo(() => {
9
+ const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
10
+
11
return (
12
<Box p={4}>
13
<Card>
14
<CardContent>
15
<Typography component="div">
- 服务器URL为: <strong>ws://{window.location.host}</strong>
16
+ 服务器URL为:{' '}
17
+ <strong>
18
+ {protocol}://{window.location.host}
19
+ </strong>
20
</Typography>
21
22
账号密码为Tailchat后台的账号密码
0 commit comments