generic signals

This commit is contained in:
2025-03-10 13:51:48 +01:00
parent 980527f45f
commit 3abdc09819
4 changed files with 24 additions and 9 deletions

View File

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