App is installed in IP/folder running with forever as comm.js. I need it to spit out something:1337/http://socket.io/socket.io.js file as I'm connecting to it from mobile app.
comm.js sample:
var app = express();
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
server.lres.header("Access-Control-Allow-Headers", "X-Requested-With");
var server = http.createServer(app);
server.listen(1337);
io = io.listen(server, {log:false, origins: '*:*'});
Already did this on a server by just installing socket.io and starting comm.js. But there is a domain name. Here I have 0.0.0.0/app_folder.
Server is on AWS and has 1337 accessible. Can't find any help on google.
Aucun commentaire:
Enregistrer un commentaire