Skip to content

AMQP object properties

Both AmqpClient091 and AmqpClient10 objects have the following properties:

ts
URL:  string // e.g., amqp://amqp.myhost.com:5672 or amqps://amqp.myhost.com:5672
User: string // username for authentication
Pass: string // password

That is the whole surface.

CAUTION

There is no PassFromSecret property on these objects. Assigning to that name sets an ordinary, ignored JavaScript property and leaves Pass empty, so the connection is attempted with no password. To keep a broker password out of the script source, read it at run time and assign it to Pass:

ts
cli.Pass = GetSecret("amqp-password");