(connection)
| 56 | |
| 57 | class Channel extends BaseChannel { |
| 58 | constructor(connection) { |
| 59 | super(connection); |
| 60 | this.on('delivery', this.handleDelivery.bind(this)); |
| 61 | this.on('cancel', this.handleCancel.bind(this)); |
| 62 | } |
| 63 | |
| 64 | // This encodes straight-forward RPC: no side-effects and return the |
| 65 | // fields from the server response. It wraps the callback given it, so |