Added Backend Classes and FUnctions for an working Game. But lacking Implementations
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user