Skip to content

A centralized chat application built in Go, using TCP sockets for communication.

Notifications You must be signed in to change notification settings

joshheinrichs/go-chat-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A centralized chat application built in Go, using TCP sockets for communication.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages