2023-05-09 17:47:03 +02:00
2023-05-07 19:28:49 +02:00
2023-05-07 16:08:07 +02:00
2023-05-09 17:47:03 +02:00

Example NATS chat application

This application is an example on how to use NATS in rust. Features implemented are Authentication, Publish-Subscribe and Request-Reply.

Starting the server

Go to nats-server directory and run the run.sh script.

The client

Go to nats-client directory and execute cargo run

Users

  • admin is allowed everything
  • client may pusblish and subscribe to the chat channel
  • guest may only read chat messages

Chat commands

  • Writing anything will publish text as a messages
  • "invalid" will send a non json string
  • "request xyz" will send xyz as a request, getting an automated response
Description
No description provided
Readme 37 KiB
Languages
Rust 98.9%
Shell 1.1%