uggly reliable

This commit is contained in:
2025-03-06 11:46:45 +01:00
parent 6950810b95
commit c8a748fe71
12 changed files with 401 additions and 92 deletions

View File

@@ -8,14 +8,16 @@ public class ChatApp {
Server server = new Server(6665);
ClientConsole client = new ClientConsole(new InetSocketAddress("localhost", 6665));
client.getClientInterface().SendCreateRoom("101");
client.onConnect.connect(() -> {
client.getClientInterface().SendCreateRoom("101");
});
client.joinThread();
System.out.println("Stopping server ...");
server.close();
System.out.println("Done !");
client.onDisconnect.connect(() -> {
System.out.println("Stopping server ...");
server.close();
System.out.println("Done !");
});
}
}