A top-level container of connections, sessions, senders, and receivers. It serves as an entry point to the API, allowing connections and links to be established.
Related: Class connection, Class session, Class sender, Class receiver
AMQP: Conceptual overview
Property | Summary | Type | Default value | Mutable | Nullable |
---|---|---|---|---|---|
id | A globally unique client identifier | string | generated | ☐ | ☐ |
Method | Summary | Inputs | Outputs |
---|---|---|---|
constructor | Create a new client | [client-options] | client |
close | Close any open connections, sessions, senders, and receivers | future of endpoint | |
(await) close | Close any open connections, sessions, senders, and receivers | task of client |
Method | Summary | Inputs | Outputs |
---|---|---|---|
connect | Create and open an outbound connection | host, [port], [connection-options] | connection |