![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/node_modules/sockjs-client/lib/transport/ |
'use strict'; var inherits = require('inherits') , AjaxBasedTransport = require('./lib/ajax-based') , XhrReceiver = require('./receiver/xhr') , XDRObject = require('./sender/xdr') ; // According to: // http://stackoverflow.com/questions/1641507/detect-browser-support-for-cross-domain-xmlhttprequests // http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/ function XdrStreamingTransport(transUrl) { if (!XDRObject.enabled) { throw new Error('Transport created when disabled'); } AjaxBasedTransport.call(this, transUrl, '/xhr_streaming', XhrReceiver, XDRObject); } inherits(XdrStreamingTransport, AjaxBasedTransport); XdrStreamingTransport.enabled = function(info) { if (info.cookie_needed || info.nullOrigin) { return false; } return XDRObject.enabled && info.sameScheme; }; XdrStreamingTransport.transportName = 'xdr-streaming'; XdrStreamingTransport.roundTrips = 2; // preflight, ajax module.exports = XdrStreamingTransport;