fix websocket
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 59s

This commit is contained in:
Lee 2024-04-18 01:41:52 +01:00
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 (