WebSocket Secure

This commit is contained in:
2025-10-13 22:00:02 +02:00
parent 2c061a6f8e
commit d29f221a3b
8 changed files with 40 additions and 36 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { useParams } from "next/navigation";
import MessageBox from "@/components/MessageBox";
import AppSidebar from "@/components/Sidebar";
import { Message, Server as ServerType } from "@/types/types";
import { User } from "@/hooks/get-user";
import { UserProfile } from "@/hooks/get-user";
import { StringMap } from "@/types/typeUtils";
import auth, { makeAddress } from "@/lib/auth";
@@ -15,7 +15,7 @@ export default function Server() {
const wsNodeRef = useRef<WebSocket | null>(null);
const [server, setServer] = useState<undefined | ServerType>();
const [messages, setMessages] = useState<Message[]>([]);
const [userList, setUserList] = useState<StringMap<User>>({});
const [userList, setUserList] = useState<StringMap<UserProfile>>({});
useEffect(() => {
if (!ip) return;