CloseMessage({String? error, bool? allowReconnect}) : this.error = error, this.allowReconnect = allowReconnect, super(MessageType.Close);