An open API service indexing awesome lists of open source software.

https://github.com/techprimers/nats-example

NATS example using JNats
https://github.com/techprimers/nats-example

nats nats-example nats-messaging

Last synced: 8 months ago
JSON representation

NATS example using JNats

Awesome Lists containing this project

README

          

# NATS Example using JNats

## Start Nats Server using Docker
- Start Nats Server using Docker
```
docker run --name nats --rm -p 4222:4222 nats
```
- Connecting to NATS Server
```
telnet localhost 4222
```
- Publishing a message to subject `com.techprimers`:
```
PUB com.techprimers 5
hello
```