fix: 修复admin socketio平台链接协议问题

pull/70/head
moonrailgun 2 years ago
parent 9b7499a23e
commit 089dbbb37f

@ -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 (
<Box p={4}>
<Card>
<CardContent>
<Typography component="div">
URL: <strong>ws://{window.location.host}</strong>
URL:{' '}
<strong>
{protocol}://{window.location.host}
</strong>
</Typography>
<Typography component="div">
Tailchat

Loading…
Cancel
Save