feat: integrate Socket.IO for real-time communication; add socket connection management and token refresh handling

This commit is contained in:
JSC
2025-07-27 13:44:00 +02:00
parent 6018a5c8c5
commit 5892d02e9f
10 changed files with 421 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import { useAuth } from '../contexts/AuthContext'
import { ModeToggle } from '../components/ModeToggle'
import { SocketStatus } from '../components/SocketStatus'
export function DashboardPage() {
const { user, logout } = useAuth()
@@ -28,8 +29,11 @@ export function DashboardPage() {
<main className="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
<div className="px-4 py-6 sm:px-0">
<div className="border-4 border-dashed border-gray-200 dark:border-gray-700 rounded-lg h-96 flex items-center justify-center">
<p className="text-gray-500 dark:text-gray-400">Dashboard content coming soon...</p>
<div className="space-y-6">
<SocketStatus />
<div className="border-4 border-dashed border-gray-200 dark:border-gray-700 rounded-lg h-96 flex items-center justify-center">
<p className="text-gray-500 dark:text-gray-400">Dashboard content coming soon...</p>
</div>
</div>
</div>
</main>