Added client socket

This commit is contained in:
Thomas
2020-08-21 15:53:16 +02:00
parent 861105eb92
commit e2e4495f02
17 changed files with 200 additions and 55 deletions

View File

@@ -31,7 +31,7 @@ public class SocketHandler extends TextWebSocketHandler {
String type = (String) jsonObject.get("type");
switch (type) {
case "update":
gameManager.updatePlayer(session, (Player) jsonObject.get("update"));
gameManager.updatePlayer(session, (Player) jsonObject.get("message"));
break;
default:
SocketUtils.sendMessage(session, "error", "unknow command");