chat-connect

1.0.6 • Public • Published

chat-connect

chat-connect is a real-time chat client that you can run directly from the terminal. It connects to a WebSocket server to send and receive messages in real-time.

Usage

You can start the chat client with the following command:

npx chat-connect

The client will prompt you to enter a username and a room to connect to.

Steps to Use:

  1. Open the terminal.
  2. Run the command npx chat-connect.
  3. Enter your username when prompted.
  4. Enter the room name when prompted.
  5. Start sending messages and see received messages in real-time.

To exit the chat, type /exit and press Enter.

Examples

After running npx chat-connect, you will see something like this:

Username: [Your Name]
Room: [Room Name]
> [Your Message]
[Other User's Name]: [Received Message]

License

This project is licensed under the MIT License. See the LICENSE file for details.

Package Sidebar

Install

npm i chat-connect

Weekly Downloads

25

Version

1.0.6

License

MIT

Unpacked Size

3.96 kB

Total Files

3

Last publish

Collaborators

  • okatsuo