this is a pain in the ass

This commit is contained in:
Gavin McDonald
2025-06-23 15:33:04 -04:00
parent 59aa904c5a
commit aa938f7258
6 changed files with 377 additions and 20 deletions

View File

@@ -3,6 +3,7 @@
import { useEffect, useState } from 'react';
import { useParams } from 'next/navigation';
import useSocket from '@/hooks/useSocket';
import useRTC from '@/hooks/useRTC';
import { Eye } from 'lucide-react';
import Card from '@/components/Card';
@@ -40,6 +41,8 @@ export default function GamePage() {
const selectDeck: Deck | null = selectCard >= 0 ? cards[selectCard].deck : null;
const socket = useSocket({ gameID, setGameData, setNoGame });
const rtc = useRTC(socket);
console.log('useRTC:', rtc);
useEffect(() => {
if (gameIDParam) {