fix websocket
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 59s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 59s
This commit is contained in:
parent
582084da88
commit
590d9cfaff
@ -20,7 +20,7 @@ const stats: Stat[] = [
|
||||
];
|
||||
|
||||
export function Stats(): ReactElement {
|
||||
const { lastMessage, readyState } = useWebSocket("https://api.mcutils.xyz/websocket/metrics");
|
||||
const { lastMessage, readyState } = useWebSocket("wss://api.mcutils.xyz/websocket/metrics");
|
||||
const metrics = lastMessage !== null ? JSON.parse(lastMessage.data).metrics : undefined;
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user