Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/ecommerce/node_modules/sockjs/lib/ |
// Generated by CoffeeScript 1.12.7
(function() {
var utils;
utils = require('./utils');
exports.app = {
chunking_test: function(req, res, _, next_filter) {
var write;
res.setHeader('Content-Type', 'application/javascript; charset=UTF-8');
res.writeHead(200);
write = (function(_this) {
return function(payload) {
var x;
try {
return res.write(payload + '\n');
} catch (error) {
x = error;
}
};
})(this);
utils.timeout_chain([
[
0, (function(_this) {
return function() {
return write('h');
};
})(this)
], [
1, (function(_this) {
return function() {
return write(Array(2049).join(' ') + 'h');
};
})(this)
], [
5, (function(_this) {
return function() {
return write('h');
};
})(this)
], [
25, (function(_this) {
return function() {
return write('h');
};
})(this)
], [
125, (function(_this) {
return function() {
return write('h');
};
})(this)
], [
625, (function(_this) {
return function() {
return write('h');
};
})(this)
], [
3125, (function(_this) {
return function() {
write('h');
return res.end();
};
})(this)
]
]);
return true;
},
info: function(req, res, _) {
var info;
info = {
websocket: this.options.websocket,
origins: !this.options.disable_cors ? ['*:*'] : void 0,
cookie_needed: !!this.options.jsessionid,
entropy: utils.random32()
};
if (typeof this.options.base_url === 'function') {
info.base_url = this.options.base_url();
} else if (this.options.base_url) {
info.base_url = this.options.base_url;
}
res.setHeader('Content-Type', 'application/json; charset=UTF-8');
res.writeHead(200);
return res.end(JSON.stringify(info));
},
info_options: function(req, res) {
res.statusCode = 204;
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
res.setHeader('Access-Control-Max-Age', res.cache_for);
return '';
}
};
}).call(this);