Skip to content

A chatroom application to show how to use gRPC bidirectional streaming

Notifications You must be signed in to change notification settings

jerray/chatroom-grpc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatroom

gRPC bidirectional streaming example.

Build

make build

Run Server

./chatroom server -p 3000

Run Client

./chatroom client -s 127.0.0.1:3000

Then type #login [name] to register a user name on server.

Open another terminal tab and start another client. Register another user. Then users can chat with each other. Type something and press Enter in the console, another user will receive the message.

Client Commands

  • #login [name] Register a user name
  • @[name] [message] Send a message to a user
  • [message] Send a message to all users in the chatroom

Licence

MIT

About

A chatroom application to show how to use gRPC bidirectional streaming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published