Files
Projet-UDP/ChatApp/README.md
2025-03-01 11:36:30 +01:00

1.0 KiB

ChatAPP

An instant messaging app using Java and the UDP protocol.

How to run

Warning

As of now, the app rely on ANSI escape character, thus not available on Windows. However, this feature is under development.

You can run the app by launching the ChatApp class. This will create the server (port 6665) and a first client, (creating by the way a room (101)).

You can then create more clients by launching the Client class. It will connect to the server (be sure you launched it first) on the default port 6665.

How to use

As soon as you launch a client, you will be prompted to enter your name. You will then be in the lobby. From here you can join whatever room that is created, and you will be able to chat with the other clients in the room. You will also be able to create a new room.

Commands

Tip

The commands can be found by typing /help in the chat, in the lobby or in any room.

Note

All the commands are prefixed by /.

  • /createRoom roomName
  • /listRooms
  • /joinRoom roomName
  • /leaveRoom
  • /help