var express = require('express'),
app = module.exports.app = express();
var server = http.createServer(app);
var socket = require('./libs/sockets')(server);
app.set('socket', socket); // для обращения к сокетам из, например, passport.js
module.exports = function(server) {
var io = require('socket.io')(server);
io.sockets.on('connection', function(socket){
socket.on('connect', function(data){
console.log(data);
});
socket.emit('auth', {hello : 'world222'});
});
return io;
};
require('routes')(app);
module.exports = function (app) {
app.get('/', function(req, res) {
res.render('index');
});
app.get('/user', function(req, res) {
res.render('user');
});
};
chrome.exe --disable-web-security
$.get($('script')[0].src, function(resp){
console.log(resp);
})
maps.yandex.ru/
?text=Детские+сады
&where=
&sll=37.73619078845212%2C55.786558591756325
&sspn=0.07630348205566406%2C0.025052286112980937
&source=catalog
&output=json
The loader stub also calls Phar::interceptFileFuncs() to allow easy bundling of a PHP application that accesses the file system. If the phar extension is not present, the loader stub will extract the phar archive to a temporary directory and then operate on the files. A shutdown function erases the temporary files on exit.