Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/../querystring/../@protobufjs/../delayed-stream/../validator/../cheerio/../hasown/../strtok3/../mime/../cookie/../lodash.clonedeep/../css-what/../entities/../http/../hasown/../http/../wrappy/../@eshaz/../strtok3/../engine.io/../htmlparser2/../vary/../gopd/../side-channel/../engine.io/build/transports
الملفات الموجودة في هذا الـ Path:
.
..
index.d.ts
index.js
polling-jsonp.d.ts
polling-jsonp.js
polling.d.ts
polling.js
websocket.d.ts
websocket.js
webtransport.d.ts
webtransport.js
مشاهدة ملف: index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const polling_1 = require("./polling");
const polling_jsonp_1 = require("./polling-jsonp");
const websocket_1 = require("./websocket");
const webtransport_1 = require("./webtransport");
exports.default = {
polling: polling,
websocket: websocket_1.WebSocket,
webtransport: webtransport_1.WebTransport,
};
/**
* Polling polymorphic constructor.
*
* @api private
*/
function polling(req) {
if ("string" === typeof req._query.j) {
return new polling_jsonp_1.JSONP(req);
}
else {
return new polling_1.Polling(req);
}
}
polling.upgradesTo = ["websocket", "webtransport"];