Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 995 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 995 Bytes

ChatApp

To run this code first:

Then clone this repository and run these commands in your terminal from within the directory of this repository:

mix deps.get
iex -S mix

In another terminal:

nc 127.0.0.1 8000   # nc is the netcat command line program
# type "hi" and press enter

In yet another terminal:

nc 127.0.0.1 8000   # nc is the netcat command line program
# type "I see you" and press enter

You should see in the server's terminal that both "hi" and "I see you" were broadcast, also in the second terminal you should see "I see you" even though you typed that into the third terminal.