To start the application, run
$ cd chat/
$ mix run -e Chat.start
Alernatively, the project can be installed and run as an escript:
$ mix escript.install github spencerolson/chat
$ chat
Once started, type help
to see all options.
Try running the application in multiple terminal windows, or even on multiple machines within the same network!
A terminal-based chat app that demos the "raw mode" coming to OTP 28. Thanks to @zachallaun for the awesome writeup. He sums it up best:
If you’re unfamiliar with raw mode, the gist of it is that it allows terminals to read input without waiting for a newline, allowing for much more responsive terminal UIs.
Note that you need to have OTP 28 installed locally, or else "raw mode" won't be available and the app won't work as expected. For the asdf
version manager, I installed and activated it via:
$ asdf install erlang ref:master
$ asdf global erlang ref:master
- Decide if i should be using multi_call instead of abcast for message broadcast