From 1c063ed8328a61542a6f17d76904f67fdc0c32ba Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 28 Jan 2024 12:00:48 +0100 Subject: [PATCH 1/3] change to prod --- client/static/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/static/js/main.js b/client/static/js/main.js index 08f60ba..94fdb36 100644 --- a/client/static/js/main.js +++ b/client/static/js/main.js @@ -12,8 +12,8 @@ $(document).ready(function () { function initServer() { connection = new signalR.HubConnectionBuilder() - .withUrl("https://578d-87-206-130-93.ngrok-free.app/GameHub") - //.withUrl("https://memethegatheringapi.azurewebsites.net/GameHub") + //.withUrl("https://578d-87-206-130-93.ngrok-free.app/GameHub") + .withUrl("https://memethegatheringapiprod.azurewebsites.net/GameHub") // .withUrl("https://578d-87-206-130-93.ngrok-free.app/GameHub") .withAutomaticReconnect() .configureLogging(signalR.LogLevel.Information) From cfe14f2317f28005bdaab31d2831f89721f05f4f Mon Sep 17 00:00:00 2001 From: Adam Siwek <41082766+Timmlion@users.noreply.github.com> Date: Sun, 28 Jan 2024 12:39:51 +0100 Subject: [PATCH 2/3] Update main.js --- client/static/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/static/js/main.js b/client/static/js/main.js index 94fdb36..23d8948 100644 --- a/client/static/js/main.js +++ b/client/static/js/main.js @@ -13,7 +13,7 @@ $(document).ready(function () { function initServer() { connection = new signalR.HubConnectionBuilder() //.withUrl("https://578d-87-206-130-93.ngrok-free.app/GameHub") - .withUrl("https://memethegatheringapiprod.azurewebsites.net/GameHub") + .withUrl("https://magicthememeingapiprod.azurewebsites.net/GameHub") // .withUrl("https://578d-87-206-130-93.ngrok-free.app/GameHub") .withAutomaticReconnect() .configureLogging(signalR.LogLevel.Information) @@ -329,4 +329,4 @@ function ForceEndgame(){ connection.invoke("DebugGameEnded", currentRoomID).catch(function (err) { return console.error(err.toString()); }); -} \ No newline at end of file +} From 414d9351a99a244c34b289026eef7cca668a6c9e Mon Sep 17 00:00:00 2001 From: Adam Siwek <41082766+Timmlion@users.noreply.github.com> Date: Sun, 28 Jan 2024 15:07:43 +0100 Subject: [PATCH 3/3] Update GameHub.cs hotfix --- backend/MemeBE/hubs/GameHub.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/MemeBE/hubs/GameHub.cs b/backend/MemeBE/hubs/GameHub.cs index dcc2094..667ce1f 100644 --- a/backend/MemeBE/hubs/GameHub.cs +++ b/backend/MemeBE/hubs/GameHub.cs @@ -32,7 +32,7 @@ public async Task SendMessage(string user, string message) public async Task GetRooms() { - Console.WriteLine("GetRooms"); + /*Console.WriteLine("GetRooms"); try { string[] roomIDs = rooms.Values @@ -45,7 +45,7 @@ public async Task GetRooms() catch { // ignore - } + }*/ } public async Task CreateRoom(string playerName) @@ -294,7 +294,7 @@ public async Task GameEnded(Room room) await Clients.Group(room.RoomId) .SendAsync("GameEnded", message); - rooms.Remove(room.RoomId); + //rooms.Remove(room.RoomId); } public List GetOtherPlayers(Room room, string connId) { @@ -432,4 +432,4 @@ await Clients.Group(room.RoomId) // Target = 0 - all // 1 - player // 2 - persistent slot -} \ No newline at end of file +}