From 590d9cfaff581b67f85365c3ae323b17ec6d7b29 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 18 Apr 2024 01:41:52 +0100 Subject: [PATCH] fix websocket --- src/app/components/stats.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/stats.tsx b/src/app/components/stats.tsx index d917465..ac472d9 100644 --- a/src/app/components/stats.tsx +++ b/src/app/components/stats.tsx @@ -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 (