Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
certs
README.md
main.go
stan.conf

README.md

example/pingpong

A sample application that publishes and consumes ping & pong messages.

Generate self-signed certificates

Run this script to generate self-signed certificates easily.

$ /path/to/gen_selfsigned_certs.sh localhost

Put the generated files in ./certs/ directory.

Start local STAN server

Launch STAN server locally:

$ /path/to/nats-streaming-server -sc stan.conf -c stan.conf -D -user USER -pass PASSWORD

Run

$ go run main.go