- Fun little project that allows you to communicate to any device with a sufficient enough Text-Based Command Line Interface (CLI) on the same Router. The system is based on the net Javscript Module (Pre-Installed) which utilises asynchronous TCP connections.
-
Node.js installed on your system.
-
blessed Javascript Module Installed.
npm install blessed
-
Open a terminal or command prompt.
-
Navigate to the project folder.
-
Run the server:
node index.js
Output: The terminal should display the following messages:
Server starting... Server listening on port 3000
-
Open another terminal on the same network.
-
Use telnet or netcat to connect to the server:
telnet <SERVER_IP> 3000 # OR (if on the same machine) telnet localhost 3000
-
When prompted:
Enter your username:
Type your desired username and press Enter.
You can now type messages and press Enter to send them.
-
User messages will appear in the server terminal as:
<USERNAME> Hello everyone! -
Server messages will appear as:
<SERVER> Welcome to the chat!
Use the Up and Down arrow keys while the input box is focused to scroll the chat history. (Note: This only works once the chat history has filled the current page.)
Press Ctrl+C in the server or client terminal to exit.
- The Server Terminal (at this point in time) doesn't have any extra pivileges or configurations.
- It is just one standalone chat (at this point in time) so don't expect much :p
- I may plan to add more features in future (possibly connection to the outside world wowowow)
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. See the LICENSE file for details.