This is a simple TCP chat app that can either host a chat or connect to another chat server.
Install it globally using
npm i -g tcp-chat-server
command | default | usage |
---|---|---|
--serve | none | This flag is used to host a chat server |
--connect | none | This flag is used to connect to a chat server |
--host | 127.0.0.1 | This flag is used to specify the host to connect |
--port | 4000 | This flag is used to specify the port to host a server or to connect |
tcp-chat --serve --port 5000