zorigami
Version:
a package for managing web workers
24 lines • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/* export string literal types along with the string value */
/* general worker constants */
exports.SETUP_CHANNEL = 'worker_constants/SETUP_CHANNEL';
exports.EXPOSE_WORKER_API = 'worker_constants/EXPOSE_WORKER_API';
exports.RESPONSE_MESSAGE = 'worker_constants/RESPONSE_MESSAGE';
exports.TRIGGER_EXPOSE_WORKER_API = 'worker_constants/TRIGGER_EXPOSE_WORKER_API';
exports.EXPOSE_MAIN_API = 'worker_constants/EXPOSE_MAIN_API';
exports.REJECT_MESSAGE = 'worker_constants/REJECT_MESSAGE';
exports.LIST_CONNECTIONS = 'worker_constants/LIST_CONNECTIONS';
/* random constants */
exports.MAIN_THREAD_NAME = 'main_thread';
exports.ACK = 'ACK';
/* types of workers */
exports.INDIVIDUAL_WORKER = 'worker_config/INDIVIDUAL_WORKER';
exports.TRANSPARENT_POOL = 'worker_config/TRANSPARENT_POOL';
/* these actions are available on the main thread to all the workers */
exports.REDIRECT_URL = 'main_actions/REDIRECT_URL';
exports.FLUSH_DATA = 'main_actions/FLUSH_DATA';
exports.DESTROY_WORKER = 'main_actions/DESTROY_WORKER';
exports.LOAD_SCRIPT = 'main_actions/LOAD_SCRIPT';
exports.TIMEOUT = 100 * 35;
//# sourceMappingURL=worker_constants.js.map