From fab87866f34ab866a3cb08c608e3a352529722f2 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:32:54 -0500 Subject: [PATCH] fix(SWT): Improved logging in ClientHandshake - Added hint to check Server Roles for handshake key mismatches --- .../SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs index 579c41ed2..7821dede2 100644 --- a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs +++ b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/StandAlone/ClientHandshake.cs @@ -72,7 +72,10 @@ public bool TryHandshake(Connection conn, Uri uri) if (responseKey != expectedResponse) { - Log.Error($"[SWT-ClientHandshake]: Response key incorrect\nResponse:{responseKey}\nExpected:{expectedResponse}"); + Log.Error($"[SWT-ClientHandshake]: Response key incorrect\n" + + $"Expected:{expectedResponse}\n" + + $"Response:{responseKey}\n" + + $"This can happen if Websocket Protocol is not installed in Windows Server Roles."); return false; }