Closed alifpay closed 4 years ago
https://github.com/nats-io/nats.go#encoded-connections
Is it possible to use NewEncodedConn in stan.go ? c, _ := nats.NewEncodedConn(nc, nats.JSON_ENCODER)
No, STAN has its own encoding for the payload. You could encode the payload yourself before passing to STAN.
https://github.com/nats-io/nats.go#encoded-connections
Is it possible to use NewEncodedConn in stan.go ? c, _ := nats.NewEncodedConn(nc, nats.JSON_ENCODER)