"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var logger_1 = require("../logger");
var EventEmitter = require("events");
exports.emitter = new EventEmitter();
exports.emitter.on("message", function (message) {
    logger_1.log("message: " + message);
});
exports.emitter.on("progress", function (message) {
    // message is a ProgressEvent, with the following fields
    var loaded = message.loaded, total = message.total, lengthComputable = message.lengthComputable;
});
