'use strict';

class ChannelBase {
  constructor(name) {
    this.name = name;
    this.running = false;
  }

  async start() { throw new Error(`${this.name}.start() not implemented`); }
  async stop() { this.running = false; }
  async send(target, message) { throw new Error(`${this.name}.send() not implemented`); }
}

module.exports = ChannelBase;
