Skip to content

storyofhis/tcp-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Build TCP Chat with GO (Golang) ๐Ÿš€

running with your netcat localhost on port:

go run cmd/main.go

connect to localhost (netcat):

nc localhost 9090

connect to localhost (telnet):

telnet localhost 9090

command line for your client:

  • /nick <name> - get a name, otherwise user will stay anonymous.
  • /join <name> - join a room, if room doesn't exist, the new room will be created. User can be only in one room at the same time.
  • /rooms - show list of available rooms to join.
  • /msg <msg> - roadcast message to everyone in a room.
  • /quit - disconnects from the chat server.

About

tcp projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages