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

Method constructor

lib/channel_model.js:45–49  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

43
44class Channel extends BaseChannel {
45 constructor(connection) {
46 super(connection);
47 this.on('delivery', this.handleDelivery.bind(this));
48 this.on('cancel', this.handleCancel.bind(this));
49 }
50
51 // An RPC that returns a 'proper' promise, which resolves to just the
52 // response's fields; this is intended to be suitable for implementing

Callers

nothing calls this directly

Calls 1

onMethod · 0.95

Tested by

no test coverage detected