Whistle ๐ฌ
A simple TCP chat room written in GoLang. This application allows clients to connect to port 8001
, create a username or be โจanonymousโจ, and start joining rooms to send a message.
Demo ๐ฏ Here is an example of two clients connected via TCP on Whistle. They were able to create nicknames and join a room to chat with each other. When done chatting, they were able to quit out of the server.
Usage ๐
1. Clone the Repository
$ git clone https://github.com/allen-tran/whistle/
2. Run the App
$ ./whistle
3. Connect the Client
MacOS
$ nc ::1 8001
Linux
$ telnet localhost 8001
Commands ๐ฎ
/nick <name>
: give yourself a nickname, else stay anonymous/join <name>
: join a room. if the room does not exist, it will be created for you/rooms
: show list of availible rooms/msg <message>
: broadcast message to everyone in room/quit
: disconnects from chat server