Added Backend Classes and FUnctions for an working Game. But lacking Implementations

This commit is contained in:
jhim
2026-02-27 11:16:21 +01:00
committed by Jonas
parent 120c671dce
commit 5db7ac1676
12 changed files with 183 additions and 15 deletions
@@ -2,9 +2,9 @@ import * as signalR from '@microsoft/signalr';
class GameConnection{
public connection: signalR.HubConnection
constructor(gameSession: string) {
constructor(playerName: string, joinCode: number | undefined) {
this.connection = new signalR.HubConnectionBuilder()
.withUrl(`/gameHub?gameSession=${gameSession}`)
.withUrl("/api/gamehub")
.withAutomaticReconnect()
.build();
}