source: trip-planner-front/node_modules/engine.io-parser/build/cjs/commons.js@ bdd6491

Last change on this file since bdd6491 was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago

primeNG components

  • Property mode set to 100644
File size: 768 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ERROR_PACKET = exports.PACKET_TYPES_REVERSE = exports.PACKET_TYPES = void 0;
4const PACKET_TYPES = Object.create(null); // no Map = no polyfill
5exports.PACKET_TYPES = PACKET_TYPES;
6PACKET_TYPES["open"] = "0";
7PACKET_TYPES["close"] = "1";
8PACKET_TYPES["ping"] = "2";
9PACKET_TYPES["pong"] = "3";
10PACKET_TYPES["message"] = "4";
11PACKET_TYPES["upgrade"] = "5";
12PACKET_TYPES["noop"] = "6";
13const PACKET_TYPES_REVERSE = Object.create(null);
14exports.PACKET_TYPES_REVERSE = PACKET_TYPES_REVERSE;
15Object.keys(PACKET_TYPES).forEach(key => {
16 PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;
17});
18const ERROR_PACKET = { type: "error", data: "parser error" };
19exports.ERROR_PACKET = ERROR_PACKET;
Note: See TracBrowser for help on using the repository browser.