Group: Ben Dover
To start the program you have to run this command to start the server:
go run server/server.goand then go to a new terminal, and write this command to create a client:
go run client/client.go -name ""Here You can input a name on the argument -name by writing it in the "".
You can then create multible clients by repeating the same Command mulitble times, in new terminals.
When you have created one or more clients, it is as simple as writing in the terminal on the clients, and the chats will then be distributed to all Clients, with a Lamport Timestamp, the name of the Client, and the message.
If a Client wants to leave, you can either close the terminal, or use the shortrcut ctrl+c to close the process. This should provide a "Client left" message to all the remaining clients.
It is possible to specify which serverport the server should run at. This is done by giving a Flag with the commandline specifying which port. Under here are examples of how to make a server and a client on the server port 5454.
go run server/server.go -port 5454go run client/client.go -sPort 5454 -name ""