Integrate SignalR for game session management and clean up unused local game logic.

This commit is contained in:
2026-02-22 20:52:00 +01:00
committed by Jonas
parent 306dacc300
commit 120c671dce
5 changed files with 205 additions and 19 deletions
@@ -0,0 +1,13 @@
import * as signalR from '@microsoft/signalr';
class GameConnection{
public connection: signalR.HubConnection
constructor(gameSession: string) {
this.connection = new signalR.HubConnectionBuilder()
.withUrl(`/gameHub?gameSession=${gameSession}`)
.withAutomaticReconnect()
.build();
}
}
export default GameConnection;