diff --git a/src/main/java/uta/cse3310/App.java b/src/main/java/uta/cse3310/App.java index a7cd765..62bd721 100644 --- a/src/main/java/uta/cse3310/App.java +++ b/src/main/java/uta/cse3310/App.java @@ -232,9 +232,9 @@ public void onMessage(WebSocket conn, String message) L.addPlayer(P); // since the lobby has changed, let's send it out to everyone - String jsonString = gson.toJson(L); - conn.send(jsonString); - //broadcast(jsonString); + String jsonString = gson.toJson(L.Players); + //conn.send(jsonString); + broadcast(jsonString); // Player.printPlayerList(); // broadcastPlayerList(); // }