natssamples
- Clone the project
- Run yarn
- In one terminal run the command: "node subscribe --queue=my-queue foo 'Hey, Good to see you!'"
- In another terminal run the command: "node publish foo 'Whats Up!'"
In the first terminal you should get the "Whats Up!" message, and in the other you should receive the "Hey, Good to see you".