Last change
on this file was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago |
primeNG components
|
-
Property mode
set to
100644
|
File size:
768 bytes
|
Rev | Line | |
---|
[e29cc2e] | 1 | "use strict";
|
---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 3 | exports.ERROR_PACKET = exports.PACKET_TYPES_REVERSE = exports.PACKET_TYPES = void 0;
|
---|
[6a3a178] | 4 | const PACKET_TYPES = Object.create(null); // no Map = no polyfill
|
---|
[e29cc2e] | 5 | exports.PACKET_TYPES = PACKET_TYPES;
|
---|
[6a3a178] | 6 | PACKET_TYPES["open"] = "0";
|
---|
| 7 | PACKET_TYPES["close"] = "1";
|
---|
| 8 | PACKET_TYPES["ping"] = "2";
|
---|
| 9 | PACKET_TYPES["pong"] = "3";
|
---|
| 10 | PACKET_TYPES["message"] = "4";
|
---|
| 11 | PACKET_TYPES["upgrade"] = "5";
|
---|
| 12 | PACKET_TYPES["noop"] = "6";
|
---|
| 13 | const PACKET_TYPES_REVERSE = Object.create(null);
|
---|
[e29cc2e] | 14 | exports.PACKET_TYPES_REVERSE = PACKET_TYPES_REVERSE;
|
---|
[6a3a178] | 15 | Object.keys(PACKET_TYPES).forEach(key => {
|
---|
[e29cc2e] | 16 | PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;
|
---|
[6a3a178] | 17 | });
|
---|
| 18 | const ERROR_PACKET = { type: "error", data: "parser error" };
|
---|
[e29cc2e] | 19 | exports.ERROR_PACKET = ERROR_PACKET;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.