onf-simple-chat
The impetus for this project was to chat with others when logging into a system remotely (perhaps pair programming in a chroot) or working on a system without an X window system.
There are Unix utilities such as wall and talk, but neither worked exactly as I wanted, and as usual, I wanted to learn by doing :)
Only tested on Linux. It uses the select
API, so it should be portable :)
Installation
npm i onf-simple-chat
make
(how to build depends on the platform, of course)
Examples
Start the server.
npm run chat
By default it binds to port 3333, but this can be changed, i.e.:
npm run chat -- 1992
Clients connect via telnet
:
telnet localhost PORT
Dependencies
License
Author
Benjamin Toll