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
@@ -2,14 +2,14 @@
import { useRef, useState } from "react";
import AppSidebar from "@/components/Sidebar";
import { User } from "@/hooks/get-user";
import { UserProfile } from "@/hooks/get-user";
import { StringMap } from "@/types/typeUtils";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import ProfilePicture from "@/components/ProfilePicture";
export default function Chat() {
const wsRef = useRef<WebSocket | null>(null);
const [userList, setUserList] = useState<StringMap<User>>({});
const [userList, setUserList] = useState<StringMap<UserProfile>>({});
return (
<AppSidebar