// This does not apply to the NATS Go Client
Options options = new Options.Builder().
server("nats://demo.nats.io:4222").
maxControlLine(2 * 1024). // Set the max control line to 2k
build();
Connection nc = Nats.connect(options);
// Do something with the connection
nc.close();
// set this option before creating a connection
NATS.MAX_CONTROL_LINE_SIZE = 1024*2;
let nc = NATS.connect({
url: "nats://demo.nats.io:4222"
});
# Asyncio NATS client does not allow custom control lines
# There is no need to customize this in the Ruby NATS client.
// control line size is not configurable on ts-nats