opts := nats.GetDefaultOptions()
opts.Url = "demo.nats.io"
// Turn on Pedantic
opts.Pedantic = true
nc, err := opts.Connect()
if err != nil {
	log.Fatal(err)
}
defer nc.Close()
// Do something with the connection
	 
	
	
	Options options = new Options.Builder().
                            server("nats://demo.nats.io:4222").
                            pedantic(). // Turn on pedantic
                            build();
Connection nc = Nats.connect(options);
// Do something with the connection
nc.close();
	 
	
	
	let nc = NATS.connect({
    url: "nats://demo.nats.io:4222",
    pedantic: true
});
	 
	
	
	nc = NATS()
await nc.connect(servers=["nats://demo.nats.io:4222"], pedantic=True)
# Do something with the connection.
	 
	
	
	require 'nats/client'
NATS.start(pedantic: true) do |nc|
   nc.on_reconnect do
    puts "Got reconnected to #{nc.connected_server}"
  end
  nc.on_disconnect do |reason|
    puts "Got disconnected! #{reason}"
  end
  nc.close
end
	 
	
	
	// will throw an exception if connection fails
let nc = await connect({
    url: "nats://demo.nats.io:4222",
    pedantic: true
});
nc.close();