cli for Client

This commit is contained in:
Clément
2025-02-28 12:22:16 +01:00
parent db9b41b190
commit 0b4caa6eaf
4 changed files with 54 additions and 7 deletions

View File

@@ -11,11 +11,12 @@ public class ChatApp {
client.SendCreateRoom("Room1");
client.RequestRoomList();
client.SendChatMessage("Hello");
Scanner scanner = new Scanner(System.in);
while (true) {
Scanner scan = new Scanner(System.in);
String message = scan.nextLine();
client.SendChatMessage(message);
String message = scanner.nextLine();
client.visitMessage(message);
}
}
}