MCPcopy
hub / github.com/amqp-node/amqplib / Connection

Interface Connection

callback_api.d.ts:14–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12export * from './lib/properties';
13
14export interface Connection extends events.EventEmitter {
15 close(callback?: (err: Error) => void): void;
16 createChannel(callback: (err: Error, channel: Channel) => void): Channel;
17 createChannel(options: ChannelOptions, callback: (err: Error, channel: Channel) => void): Channel;
18 createConfirmChannel(callback: (err: Error, confirmChannel: ConfirmChannel) => void): ConfirmChannel;
19 createConfirmChannel(options: ChannelOptions, callback: (err: Error, confirmChannel: ConfirmChannel) => void): ConfirmChannel;
20 readonly connection: {
21 readonly serverProperties: ServerProperties;
22 };
23 updateSecret(newSecret: Buffer, reason: string, callback?: (err: Error) => void): void;
24
25 on(event: 'close', listener: (err?: Error) => void): this;
26 on(event: 'error', listener: (err: Error) => void): this;
27 on(event: 'blocked', listener: (reason: string) => void): this;
28 on(event: 'unblocked', listener: () => void): this;
29 on(event: 'update-secret-ok', listener: () => void): this;
30 on(event: 'handler-error', listener: (err: Error, eventName: string) => void): this;
31 on(event: string, listener: (...args: any[]) => void): this;
32}
33
34export interface Channel extends events.EventEmitter {
35 readonly connection: Connection;

Callers 2

baseChannelTestFunction · 0.95
connectionTestFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…