Commandline-chat is a Javascript project created during the JS Expert event taught by Erick Wendel.
npm run dev
# or
yarn dev
npm link
# This will add the global command (cmdchat) to your pc.
# To remove, run:
npm unlink -g @rgiovani/commandline-chat-client
cmdchat --username namehere --room roomhere
cmdchat --username namehere --room roomhere --hostUri https://myserver.com/
-
--hostUri: http://localhost:9898/ by default, or you can place the link where the server was deployed.
1. When executing the command, a chat will appear and you will be able to chat with anyone who enters.
2. 'Messenger' shows messages in real time. 'Users in the room' shows the users present in the same room. 'Activity log' shows when someone enters and leaves the room.
4. While the server is running, it will show all the activities that happen in real time, it will log everything.
and that's it, have fun! keep talking and give me your star! @rgiovani