From 0f559d09a5bf7dcef55062ea5de3cab426a212e0 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Mon, 7 Jun 2021 01:45:36 +0200 Subject: [PATCH] feat: implemented reconnectClient --- .../teamname/marvelous/server/lobbymanager/LobbyManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java index b31d366..80b5047 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java @@ -134,6 +134,10 @@ public class LobbyManager { } } + public void restoreConnection(WebSocket connection, Participant participant) { + participant.setConnection(connection); + } + /** * Initializes a new {@link LobbyConnection} with a not yet initialized {@link Lobby}. The {@link LobbyConnection} * gets some GameID, and also the sendMessageCallback and sendErrorCallback from the