Skip to content

georgia-adam/chat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

chat-server

A small asyncio TCP chat server. Multi-room, plaintext, with in-memory state and periodic JSON persistence.

Connect

  1. Run nc <server-address> <port> (ask me for the address and port).
  2. Enter the password when prompted (ask me if you know me).
  3. Pick a username.
  4. Start chatting.

Commands:

  • /join <room> — switch rooms (default is lobby)
  • /who — list users in your room
  • /quit — disconnect

Windows users don't have nc by default — install ncat (choco install nmap) or run the same nc command from WSL.

Run locally

Requires Python 3.10+. No external dependencies.

CHAT_PASSWORD=hunter2 python3 chat_server.py

Then connect from another terminal:

nc 127.0.0.1 8888

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages