Abort constructor

Abort(
  1. String reason, {
  2. String? message,
})

Creates a WAMP Abort message with a reason why something was aborted and an optional message to describe the issue

Implementation

Abort(this.reason, {String? message}) {
  id = MessageTypes.codeAbort;
  if (message != null) {
    this.message = Message(message);
  }
}