Miscellaneous functionalities
Get the Maximum Payload Size
nc, err := nats.Connect("demo.nats.io")
if err != nil {
log.Fatal(err)
}
defer nc.Close()
mp := nc.MaxPayload()
log.Printf("Maximum payload is %v bytes", mp)
// Do something with the max payloadConnection nc = Nats.connect("nats://demo.nats.io:4222");
long mp = nc.getMaxPayload();
System.out.println("max payload for the server is " + mp + " bytes");t.log(`max payload for the server is ${nc.info.max_payload} bytes`);nc = NATS()
await nc.connect(servers=["nats://demo.nats.io:4222"])
print("Maximum payload is %d bytes" % nc.max_payload)
# Do something with the max payload.Turn On Pedantic Mode
Set the Maximum Control Line Size
Turn On/Off Verbose Mode
Last updated
Was this helpful?