Cnaged commandqueue to use an actually thread safe queue. Server now using String for setting backend.

This commit is contained in:
lieght
2025-09-13 14:28:16 +02:00
parent fd20837e32
commit d17c1e010d
4 changed files with 70 additions and 23 deletions

View File

@@ -16,7 +16,11 @@ public class Main {
throw new RuntimeException("A event could not be initialized");
}
Server.start("remote", "127.0.0.1", "5001");
Server.start("REMOTE", "127.0.0.1", "5001");
GlobalEventBus.post(new Events.ServerEvents.command("HELP", "THANK"));
GlobalEventBus.post(new Events.ServerEvents.command("GET"));
Window.start("");
}