source: trip-planner-front/node_modules/engine.io/build/transports/index.js@ 8d391a1

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

primeNG components

  • Property mode set to 100644
File size: 577 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const polling_1 = require("./polling");
4const polling_jsonp_1 = require("./polling-jsonp");
5const websocket_1 = require("./websocket");
6exports.default = {
7 polling: polling,
8 websocket: websocket_1.WebSocket
9};
10/**
11 * Polling polymorphic constructor.
12 *
13 * @api private
14 */
15function polling(req) {
16 if ("string" === typeof req._query.j) {
17 return new polling_jsonp_1.JSONP(req);
18 }
19 else {
20 return new polling_1.Polling(req);
21 }
22}
23polling.upgradesTo = ["websocket"];
Note: See TracBrowser for help on using the repository browser.