A chatroom built with Go
When a connection comes into the server, the server will create a client.
Within the connection, the client can publish a message into the server's channel. As an action and the server will process the action concurrently.
git clone
the latest version of this codebase- run
go run .
- Open a new terminal and enter
telnet localhost 8080
- Given yourself a name
/name <name>
- Join a room
/join <room name>
- Send a message to the room
/msg <msg>
- leave the room
/leave