Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 601 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 601 Bytes

go-chat-tcp

A simple chat client and server written in Go, implemented using TCP sockets.

Setup

Start the server via go run server.go and then start as many clients as you want via go run client.go.

Chat Commands

The following special chat commands exist:

  • /create foo creates a chat room named foo
  • /join foo joins a chat room named foo
  • /leave leaves the current chat room
  • /list lists all chat rooms
  • /name foo changes the client name to foo
  • /help lists all commands
  • /quit quits the program

Any other text is sent as a message to the current chat room.