Skip to content

A simple real-time chat application using gRPC bidirectional streaming

Notifications You must be signed in to change notification settings

yash49/grpc-chat-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Bidirectional Chat Example (Node.js)

This project demonstrates a simple real-time chat application using gRPC bidirectional streaming in Node.js.

Installation

  1. Clone this repository.

  2. Install the necessary dependencies.

    pnpm install

Running the Application

  1. Start the gRPC Server: Open your first terminal and run:

    node server.js
  2. Start Client 1: Open a second terminal and run:

    node client.js

    You'll be prompted to enter a username (e.g., Alice).

  3. Start Client 2: Open a third terminal and run:

    node client.js

    You'll be prompted to enter a username (e.g., Bob).

Usage

Type messages in either client's terminal and press Enter. Messages will appear in the other client's terminal. To exit a client, type exit and press Enter.

About

A simple real-time chat application using gRPC bidirectional streaming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published