Skip to content

dazakdev/chat_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatApp

Terminal chat application written in Elixir using raw sockets (no frameworks).

  • TCP — each client connects to the server and gets its own BEAM process
  • UDP unicast — press U to send ASCII art to the server, which forwards it to all clients
  • UDP multicast — press M to send ASCII art directly to all peers via multicast group 239.255.0.1:4568 (no server involved)

Commands

To get the dependencies, run:

mix deps.get

To start the server, run:

iex -S mix

To start a client, run:

iex -r lib/client.ex -e "ChatApp.Client.start()"

To run with livebook charts, run:

iex --name chat_app@127.0.0.1 --cookie mycookie -S mix

Then, in livebook, connect to the node chat_app@127.0.0.1 with cookie mycookie and run:

Kino.Process.sup_tree(ChatApp.Supervisor)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages