export default class Message {
  constructor(data) {
    this.data = data;
    this.subject = this.constructor.name;
  }
}

export default class Message {
  constructor(data) {
    this.body = data;
    this.subject = this.constructor.name;
  }
}

rename data to body in message